From a322f3201cc9f214c19b6f38fafcdfe598882b94 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 10 Jan 2022 11:33:19 +0100 Subject: [PATCH] related to #1596 Removed switch on 'Other' plugins + fix actualize filter bug --- admin/themes/default/js/plugins_installated.js | 2 +- admin/themes/default/template/plugins_installed.tpl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/themes/default/js/plugins_installated.js b/admin/themes/default/js/plugins_installated.js index fedc86a17..557d48e8b 100644 --- a/admin/themes/default/js/plugins_installated.js +++ b/admin/themes/default/js/plugins_installated.js @@ -211,10 +211,10 @@ function uninstallPlugin(id) { pwg_token: pwg_token, format: 'json' }, success: function (data) { + $("#"+id).remove(); nb_plugin.other -=1; nb_plugin.all -=1; actualizeFilter(); - $("#"+id).remove(); }, error: function (e) { console.log(e); diff --git a/admin/themes/default/template/plugins_installed.tpl b/admin/themes/default/template/plugins_installed.tpl index 8e9ac32d4..cd8139e3a 100644 --- a/admin/themes/default/template/plugins_installed.tpl +++ b/admin/themes/default/template/plugins_installed.tpl @@ -263,7 +263,7 @@ function actualizeFilter() { $("label[for='seeInactive'] .filter-badge").html(nb_plugin.inactive); $("label[for='seeOther'] .filter-badge").html(nb_plugin.other); - console.log(nb_plugin) + //console.log(nb_plugin) $(".filterLabel").show(); $(".pluginMiniBox").each(function () { @@ -379,11 +379,12 @@ jQuery(".pluginMiniBox").each(function(index){ {/if} - + {if $plugin.STATE == 'active' || $plugin.STATE == 'inactive'} + {/if}
{if $plugin.STATE == 'active'}