Add new possibility: to deny saving setting if condition is not met

This commit is contained in:
slawkens
2023-07-22 14:37:57 +02:00
parent 3236f1aebb
commit 20dd49b1c5
4 changed files with 40 additions and 3 deletions

View File

@@ -80,11 +80,20 @@
Toastify({
position: 'center',
text: response,
duration: 3000
duration: 3000,
escapeMarkup: false,
}).showToast();
},
error : function(response) {
alert(response.responseText);
Toastify({
position: 'center',
text: response.responseText,
duration: 3000,
style: {
background: 'red',
},
escapeMarkup: false,
}).showToast();
}
});
});