1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 18:47:23 +00:00

Bugfix path selection for reverse proxy

This commit is contained in:
Ozzie Isaacs 2023-03-26 14:31:19 +02:00
parent 7d26e6fc85
commit 6c8ffb3e7e
2 changed files with 5 additions and 6 deletions

View File

@ -304,7 +304,7 @@ $(function() {
}
function fillFileTable(path, type, folder, filt) {
var request_path = "/../../ajax/pathchooser/";
var request_path = "/ajax/pathchooser/";
$.ajax({
dataType: "json",
data: {
@ -673,7 +673,7 @@ $(function() {
$.ajax({
method:"post",
dataType: "json",
url: getPath() + "/../../ajax/simulatedbchange",
url: getPath() + "/ajax/simulatedbchange",
data: {config_calibre_dir: $("#config_calibre_dir").val(), csrf_token: $("input[name='csrf_token']").val()},
success: function success(data) {
if ( data.change ) {
@ -700,8 +700,7 @@ $(function() {
e.stopPropagation();
this.blur();
window.scrollTo({top: 0, behavior: 'smooth'});
var request_path = "/../../admin/ajaxconfig";
var loader = "/../..";
var request_path = "/admin/ajaxconfig";
$("#flash_success").remove();
$("#flash_danger").remove();
$.post(getPath() + request_path, $(this).closest("form").serialize(), function(data) {
@ -710,7 +709,7 @@ $(function() {
$("#spinning_success").show();
var rebootInterval = setInterval(function(){
$.get({
url:getPath() + "/../../admin/alive",
url:getPath() + "/admin/alive",
success: function (d, statusText, xhr) {
if (xhr.status < 400) {
$("#spinning_success").hide();

View File

@ -49,7 +49,7 @@ $(function() {
method: "post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: getPath() + "/../ajax/canceltask",
url: getPath() + "/ajax/canceltask",
data: JSON.stringify({"task_id": taskId}),
});
});