mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
rerun filter after toggling an extension
This commit is contained in:
parent
96bff23919
commit
9734d57ff3
|
@ -89,6 +89,13 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
|
|||
});
|
||||
});
|
||||
});
|
||||
/* This function is called after the list of installed extension is updated */
|
||||
function filterList() {
|
||||
var value = $("#extensionfilter").val().toLowerCase();
|
||||
$("#extensionlist tbody tr").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
}
|
||||
<?php
|
||||
|
||||
$this->printFileChooserJs();
|
||||
|
@ -281,7 +288,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
|
|||
<div class="tab-content">
|
||||
<div class="tab-pane <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" id="installed" role="tabpanel">
|
||||
<input id="extensionfilter" class="form-control" type="text" placeholder="<?= getMLText('type_to_filter'); ?>">
|
||||
<div class="ajax" data-view="ExtensionMgr" data-action="installedList"></div>
|
||||
<div class="ajax" data-view="ExtensionMgr" data-action="installedList" data-afterload="()=>{filterList();}"></div>
|
||||
<?php
|
||||
// $this->installedList();
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user