1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-04 07:19: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",
data: {config_calibre_dir: $("#config_calibre_dir").val(), csrf_token: $("input[name='csrf_token']").val()},
success: function success(data) {
if ( data.change ) {
if ( data.valid ) {
if ( !data.valid ) {
$("#InvalidDialog").modal('show');
}
else{
if ( data.change ) {
confirmDialog(
"db_submit",
"GeneralChangeModal",
0,
changeDbSettings
);
}
else {
$("#InvalidDialog").modal('show');
}
} else {
} else {
changeDbSettings();
}
}
}
});