mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
related to #1596 Removed switch on 'Other' plugins + fix actualize filter bug
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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){
|
||||
<a class="icon-ellipsis-v showOptions showInfo" ></a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $plugin.STATE == 'active' || $plugin.STATE == 'inactive'}
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="toggleSelectionMode" {if {$plugin.STATE} === "active"}checked{/if}>
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
{/if}
|
||||
|
||||
<div class="pluginActionsSmallIcons">
|
||||
{if $plugin.STATE == 'active'}
|
||||
|
||||
Reference in New Issue
Block a user