1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-04 15:29:59 +00:00

Fix save invalid database

This commit is contained in:
Ozzie Isaacs 2024-11-30 10:01:03 +01:00
parent d45ed1c921
commit 14e57e3714

View File

@ -726,20 +726,20 @@ $(function() {
url: getPath() + "/ajax/simulatedbchange", url: getPath() + "/ajax/simulatedbchange",
data: {config_calibre_dir: $("#config_calibre_dir").val(), csrf_token: $("input[name='csrf_token']").val()}, data: {config_calibre_dir: $("#config_calibre_dir").val(), csrf_token: $("input[name='csrf_token']").val()},
success: function success(data) { success: function success(data) {
if ( data.change ) { if ( !data.valid ) {
if ( data.valid ) { $("#InvalidDialog").modal('show');
}
else{
if ( data.change ) {
confirmDialog( confirmDialog(
"db_submit", "db_submit",
"GeneralChangeModal", "GeneralChangeModal",
0, 0,
changeDbSettings changeDbSettings
); );
} } else {
else {
$("#InvalidDialog").modal('show');
}
} else {
changeDbSettings(); changeDbSettings();
}
} }
} }
}); });