From 346eb9057dc5268668c5ec749349f5a2ad92a161 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 16 Mar 2019 20:13:45 +0100 Subject: [PATCH] Show error message if config-set fails and not "loading..." forever Signed-off-by: William Desportes --- js/functions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 8101e4c39b..e089904fc5 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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. }