summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-03-22 10:10:35 +0100
committerAleksander Machniak <alec@alec.pl>2012-03-22 10:10:35 +0100
commit4d901b663d456917c163e4968383e1b99ad96e18 (patch)
tree9ba230614a5f76eec83ebfe4e689303f44af6a7c /public_html
parent7e4ebf0372681d8ed18749d52f920b4cbfd95644 (diff)
downloadwebadmin-4d901b663d456917c163e4968383e1b99ad96e18.tar.gz
Implement groups search (UI)
Diffstat (limited to 'public_html')
-rw-r--r--public_html/skins/default/templates/group.html4
-rw-r--r--public_html/skins/default/templates/user.html2
-rw-r--r--public_html/skins/default/ui.js8
3 files changed, 7 insertions, 7 deletions
diff --git a/public_html/skins/default/templates/group.html b/public_html/skins/default/templates/group.html
index fafcc01..0360bec 100644
--- a/public_html/skins/default/templates/group.html
+++ b/public_html/skins/default/templates/group.html
@@ -1,9 +1,8 @@
<div id="toc" class="group">
-<!--
<div id="search">
<div class="searchinput">
<input type="text" id="searchinput" name="search" value="{$engine->translate('search')}" />
- <script type="text/javascript">search_init()</script>
+ <script type="text/javascript">search_init('group')</script>
<span class="searchactions">
<span id="search-details" title="{$engine->translate('search.criteria')}" onclick="search_details()"></span>
<span id="search-reset" title="{$engine->translate('search.reset')}" onclick="search_reset()"></span>
@@ -11,7 +10,6 @@
</div>
<div class="searchdetails">{$engine->search_form()}</div>
</div>
--->
<div id="grouplist"></div>
</div>
<div class="vsplitter">&nbsp;</div>
diff --git a/public_html/skins/default/templates/user.html b/public_html/skins/default/templates/user.html
index 0e7dd8f..1c5e732 100644
--- a/public_html/skins/default/templates/user.html
+++ b/public_html/skins/default/templates/user.html
@@ -2,7 +2,7 @@
<div id="search">
<div class="searchinput">
<input type="text" id="searchinput" name="search" value="{$engine->translate('search')}" />
- <script type="text/javascript">search_init()</script>
+ <script type="text/javascript">search_init('user')</script>
<span class="searchactions">
<span id="search-details" title="{$engine->translate('search.criteria')}" onclick="search_details()"></span>
<span id="search-reset" title="{$engine->translate('search.reset')}" onclick="search_reset()"></span>
diff --git a/public_html/skins/default/ui.js b/public_html/skins/default/ui.js
index 80be561..3e90153 100644
--- a/public_html/skins/default/ui.js
+++ b/public_html/skins/default/ui.js
@@ -24,8 +24,10 @@
/**
* Search form events
*/
-function search_init()
+function search_init(task)
{
+ kadm.env.search_task = task;
+
$('#searchinput').addClass('inactive')
.blur(function() {
if (this.value == '')
@@ -36,7 +38,7 @@ function search_init()
var props = kadm.serialize_form('#search-form');
props.search = this.value;
- kadm.command('user.list', props);
+ kadm.command(kadm.env.search_task + '.list', props);
}
})
.focus(function() {
@@ -51,7 +53,7 @@ function search_reset()
input.val(kadm.t('search')).addClass('inactive');
- kadm.command('user.list', {search: ''});
+ kadm.command(kadm.env.search_task + '.list', {search: ''});
}
function search_details()