mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-29 06:17:40 +00:00
Bugfix arrange shelf
Bugfix remote login Bugfix perform Update
This commit is contained in:
@@ -263,7 +263,7 @@ $(function() {
|
||||
function updateTimer() {
|
||||
$.ajax({
|
||||
dataType: "json",
|
||||
url: window.location.pathname + "/../../get_updater_status",
|
||||
url: getPath() + "/get_updater_status",
|
||||
success: function success(data) {
|
||||
$("#DialogContent").html(updateText[data.status]);
|
||||
if (data.status > 6) {
|
||||
@@ -462,8 +462,8 @@ $(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: { start: "True"},
|
||||
url: window.location.pathname + "/../../get_updater_status",
|
||||
data: { start: "True" },
|
||||
url: getPath() + "/get_updater_status",
|
||||
success: function success(data) {
|
||||
updateText = data.text;
|
||||
$("#DialogContent").html(updateText[data.status]);
|
||||
|
||||
@@ -35,6 +35,7 @@ function sendData(path) {
|
||||
var form = document.createElement("form");
|
||||
form.setAttribute("method", "post");
|
||||
form.setAttribute("action", path);
|
||||
// form.setAttribute("csrf_token", );
|
||||
|
||||
for (counter = 0;counter < maxElements;counter++) {
|
||||
tmp[counter] = elements[counter].getAttribute("id");
|
||||
@@ -44,6 +45,10 @@ function sendData(path) {
|
||||
hiddenField.setAttribute("value", String(counter + 1));
|
||||
form.appendChild(hiddenField);
|
||||
}
|
||||
$("<input type='hidden'/>")
|
||||
.attr("name", "csrf_token").val($("input[name='csrf_token']").val())
|
||||
.appendTo(form);
|
||||
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user