Show error message if config-set fails and not "loading..." forever
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
88cb4c38bd
commit
346eb9057d
@ -5049,7 +5049,11 @@ function configSet (key, value, only_local) {
|
||||
success: function (data) {
|
||||
// Updating value in local storage.
|
||||
if (! data.success) {
|
||||
PMA_ajaxShowMessage(data.message);
|
||||
if(data.error) {
|
||||
PMA_ajaxShowMessage(data.error);
|
||||
} else {
|
||||
PMA_ajaxShowMessage(data.message);
|
||||
}
|
||||
}
|
||||
// Eventually, call callback.
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user