From be760d25d73141d2175a02123cbe62ecf7e2b6e2 Mon Sep 17 00:00:00 2001 From: Zacharie Guet Date: Wed, 27 Oct 2021 16:53:34 +0200 Subject: [PATCH] #1467 Remove javascript logs in plugin page --- admin/themes/default/js/plugins_installated.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/admin/themes/default/js/plugins_installated.js b/admin/themes/default/js/plugins_installated.js index ed82daf03..7929780a9 100644 --- a/admin/themes/default/js/plugins_installated.js +++ b/admin/themes/default/js/plugins_installated.js @@ -59,6 +59,7 @@ function normalTitle() { } function activatePlugin(id) { + $("#"+id+" .switch").attr("disabled", true); $.ajax({ @@ -84,7 +85,6 @@ function activatePlugin(id) { }, error: function (e) { console.log(e); - console.log("It didn't work"); $("#" + id + " .pluginNotif").stop(false, true); $("#" + id + " .PluginActionError label span:first").html(plugin_action_error); $("#" + id + " .PluginActionError").css("display", "flex"); @@ -122,7 +122,6 @@ function disactivatePlugin(id) { }, error: function (e) { console.log(e); - console.log("It didn't work"); $("#" + id + " .pluginNotif").stop(false, true); $("#" + id + " .PluginActionError label span:first").html(plugin_action_error); $("#" + id + " .PluginActionError").css("display", "flex"); @@ -157,7 +156,6 @@ function deletePlugin(id, name) { }, error: function (e) { console.log(e); - console.log("It didn't work"); $("#" + id + " .pluginNotif").stop(false, true); $("#" + id + " .PluginActionError label span:first").html(plugin_action_error); $("#" + id + " .PluginActionError").css("display", "flex"); @@ -189,7 +187,6 @@ function restorePlugin(id) { }, error: function (e) { console.log(e); - console.log("It didn't work"); $("#" + id + " .pluginNotif").stop(false, true); $("#" + id + " .PluginActionError label span:first").html(plugin_action_error); $("#" + id + " .PluginActionError").css("display", "flex"); @@ -217,12 +214,11 @@ function uninstallPlugin(id) { actualizeFilter(); }, error: function (e) { - console.log(e); - console.log("It didn't work"); $("#" + id + " .pluginNotif").stop(false, true); $("#" + id + " .PluginActionError label span:first").html(plugin_action_error); $("#" + id + " .PluginActionError").css("display", "flex"); $("#" + id + " .PluginActionError").delay(1500).fadeOut(2500); + console.log(e.message); } }) }