From 0990cdce6c98be640a3c70bea413ac1f44865016 Mon Sep 17 00:00:00 2001 From: artem Date: Tue, 29 May 2007 08:47:18 +0000 Subject: - changed IT Services interface (Artem) - added class CTree - added Javascript class for Cookies management git-svn-id: svn://svn.zabbix.com/trunk@4188 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/js/tree.js | 163 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 frontends/php/js/tree.js (limited to 'frontends/php/js/tree.js') diff --git a/frontends/php/js/tree.js b/frontends/php/js/tree.js new file mode 100644 index 00000000..d419cafb --- /dev/null +++ b/frontends/php/js/tree.js @@ -0,0 +1,163 @@ +/* +** ZABBIX +** Copyright (C) 2000-2005 SIA Zabbix +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 2 of the License, or +** (at your option) any later version. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +**/ +// JavaScript Document +var IE = document.all?true:false; +var OP = window.opera?true:false; + + +var tree ={ +init : function(){ + if((tree_init = cookie.read(tree_name)) != null){ + var nodes = tree_init.split('.'); + var c = nodes.length-1; + for(var i=0; i