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,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.
}