2013-12-05 Dario Rodriguez <dario@artica.es>

* mobile/operation/modules.php: Added default value for tag
        filter and added "All" option to modules group and tag filters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9171 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2013-12-05 14:23:30 +00:00
parent 2b51dcd91d
commit 1c28363743
2 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2013-12-05 Dario Rodriguez <dario@artica.es>
* mobile/operation/modules.php: Added default value for tag
filter and added "All" option to modules group and tag filters
* mobile/operation/modules.php: Fixed a style bug related to
filter explanation update on module search on mobile console.

View File

@ -108,7 +108,8 @@ class Modules {
$this->default_filters['group'] = true;
$this->default_filters['status'] = true;
$this->default_filters['free_search'] = true;
$this->default_filters['tag'] = true;
$this->free_search = $system->getRequest('free_search', '');
if ($this->free_search != '') {
$this->default = false;
@ -153,6 +154,7 @@ class Modules {
}
else {
$this->default = false;
$this->default_filters['tag'] = false;
}
}
@ -215,6 +217,9 @@ class Modules {
FROM tmodule_group
ORDER BY name");
$module_groups = io_safe_output($module_groups);
array_unshift($module_groups, array("id_mg" => 0, "name" => __("All")));
$options = array(
'name' => 'module_group',
'title' => __('Module group'),
@ -227,6 +232,9 @@ class Modules {
$ui->formAddSelectBox($options);
$tags = tags_get_user_tags();
array_unshift($tags, __("All"));
$options = array(
'name' => 'tag',
'title' => __('Tag'),