mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
table can be filtered
This commit is contained in:
parent
b3bdf6e09d
commit
bff281cd01
|
@ -30,6 +30,8 @@
|
|||
- add hooks for filtering tasks shown in the menu bar
|
||||
- allow to set more parameters when upload a document or creating a new folder
|
||||
via restapi
|
||||
- add an input field on the substitute user and extension list page for filtering
|
||||
table rows by string
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.9
|
||||
|
|
|
@ -59,6 +59,13 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
|
|||
var element = $(this);
|
||||
$('#'+element.data('extname')+'-import').submit();
|
||||
});
|
||||
|
||||
$("#extensionfilter").on("keyup", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
$("#extensionlist tbody tr").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
});
|
||||
});
|
||||
<?php
|
||||
|
||||
|
@ -170,9 +177,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
|
|||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" id="installed">
|
||||
<input id="extensionfilter" type="text">
|
||||
<?php
|
||||
// $this->contentContainerStart();
|
||||
echo "<table class=\"table _table-condensed\">\n";
|
||||
echo "<table id=\"extensionlist\" class=\"table _table-condensed\">\n";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText('name')."</th>\n";
|
||||
|
|
|
@ -32,6 +32,16 @@ require_once("class.Bootstrap.php");
|
|||
class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
?>
|
||||
$(document).ready(function(){
|
||||
$("#myInput").on("keyup", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
$("#myTable tbody tr").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
});
|
||||
});
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
|
@ -46,7 +56,8 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
$this->contentHeading(getMLText("substitute_user"));
|
||||
?>
|
||||
<table class="table table-condensed">
|
||||
<input type="text" id="myInput">
|
||||
<table id="myTable" class="table table-condensed">
|
||||
<thead>
|
||||
<tr><th><?php printMLText('name'); ?></th><th><?php printMLText('email');?></th><th><?php printMLText('groups'); ?></th><th><?php printMLText('role'); ?></th><th></th></tr>
|
||||
</thead>
|
||||
|
|
Loading…
Reference in New Issue
Block a user