summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-05 14:05:45 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-05 14:05:45 +0000
commite45c46349be33afdca75fb4f17261de1783ed49a (patch)
tree6d63ec29f1eb8b1da9c482fe0624ce8916802a2e /frontends/php/include/config.inc.php
parent3265938a7cd0ef277bfc550ff47b60ed71b417de (diff)
- improved selection of elements for exporting (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3568 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 4a9e0f96..8a76aec9 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1442,14 +1442,16 @@ else if (document.getElementById)
return false;
}
- function CheckAll(form_name, chkMain)
+ function CheckAll(form_name, chkMain, shkName)
{
var frmForm = document.forms[form_name];
var value = frmForm.elements[chkMain].checked;
for (var i=0; i < frmForm.length; i++)
{
+ name = frmForm.elements[i].name.split('[')[0];
if(frmForm.elements[i].type != 'checkbox') continue;
- if(frmForm.elements[i].name == chkMain) continue;
+ if(name == chkMain) continue;
+ if(shkName && shkName != name) continue;
if(frmForm.elements[i].disabled == true) continue;
frmForm.elements[i].checked = value;
}