summaryrefslogtreecommitdiffstats
path: root/frontends/php/js
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-13 16:02:51 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-13 16:02:51 +0000
commit95e5df63d15f5c84e2b4e24b8a69c4ced8551a03 (patch)
tree6ad822bc80ce29b240daf9d0d9be8ded483d9097 /frontends/php/js
parente10b288a4f07b76ce1a0b0428734e4034d8ac0ba (diff)
downloadzabbix-95e5df63d15f5c84e2b4e24b8a69c4ced8551a03.tar.gz
zabbix-95e5df63d15f5c84e2b4e24b8a69c4ced8551a03.tar.xz
zabbix-95e5df63d15f5c84e2b4e24b8a69c4ced8551a03.zip
- [DEV-54] minor fix in JS (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5015 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/js')
-rw-r--r--frontends/php/js/common.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/php/js/common.js b/frontends/php/js/common.js
index d7bcb930..1e1e6198 100644
--- a/frontends/php/js/common.js
+++ b/frontends/php/js/common.js
@@ -47,6 +47,13 @@ function is_string(obj){
return (typeof(obj) == 'string');
}
+function is_array(obj) {
+ if (obj.constructor.toString().indexOf("Array") == -1)
+ return false;
+ else
+ return true;
+}
+
if (!Array.prototype.forEach)
{
Array.prototype.forEach = function(fun /*, thisp*/)