Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2019-02-22 17:27:06 +01:00
commit a3fcfcb6d9
3 changed files with 23 additions and 2 deletions

View File

@ -142,6 +142,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

View File

@ -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
@ -169,9 +176,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";

View File

@ -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('role'); ?></th><th><?php printMLText('groups'); ?></th><th></th></tr>
</thead>