Show error message if config-set fails and not "loading..." forever

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-03-16 20:13:45 +01:00
parent 88cb4c38bd
commit 346eb9057d
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -5049,8 +5049,12 @@ function configSet (key, value, only_local) {
success: function (data) { success: function (data) {
// Updating value in local storage. // Updating value in local storage.
if (! data.success) { if (! data.success) {
if(data.error) {
PMA_ajaxShowMessage(data.error);
} else {
PMA_ajaxShowMessage(data.message); PMA_ajaxShowMessage(data.message);
} }
}
// Eventually, call callback. // Eventually, call callback.
} }
}); });