From e5259a33066415ea2d424afeb54cad5d4c2b1ad9 Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 23 Jan 2007 14:55:32 +0000 Subject: - improved webmonitoring (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3749 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes/ccombobox.inc.php | 92 ++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-) (limited to 'frontends/php/include/classes') diff --git a/frontends/php/include/classes/ccombobox.inc.php b/frontends/php/include/classes/ccombobox.inc.php index 387821e6..d05020d7 100644 --- a/frontends/php/include/classes/ccombobox.inc.php +++ b/frontends/php/include/classes/ccombobox.inc.php @@ -19,6 +19,8 @@ **/ ?> options['multiple'] = 'multiple'; @@ -111,4 +113,92 @@ } } + function inseret_javascript_for_editable_combobox() + { + if(defined('EDITABLE_COMBOBOX_SCRIPT_INSERTTED')) return; + + define('EDITABLE_COMBOBOX_SCRIPT_INSERTTED', 1); +?> + +value || (is_array($this->value) && in_array($value, $this->value))) + $this->value_exist = 1; + } + + parent::AddItem($value,$caption,$selected,$enabled); + } + + function ToString($destroy=true) + { + if(!isset($this->value_exist) && !empty($this->value)) + { + $this->AddItem($this->value, $this->value, 'yes'); + } + return parent::ToString($destroy); + } + } ?> -- cgit