Module: nagvis Branch: nagvis-1.5 Commit: c4a2fa80558201a91385f45c45f30903d601bdc9 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=c4a2fa80558201a91385f45c45f30903d601bdc9
Author: Lars Michelsen <[email protected]> Date: Thu Oct 28 17:00:53 2010 +0200 Changed backend_id field to select field --- share/server/core/classes/GlobalMapCfg.php | 3 ++- share/server/core/classes/WuiViewMapAddModify.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/share/server/core/classes/GlobalMapCfg.php b/share/server/core/classes/GlobalMapCfg.php index 6da3846..4fd8008 100644 --- a/share/server/core/classes/GlobalMapCfg.php +++ b/share/server/core/classes/GlobalMapCfg.php @@ -76,7 +76,8 @@ class GlobalMapCfg { 'match' => MATCH_STRING), 'backend_id' => Array('must' => 0, 'default' => $this->CORE->getMainCfg()->getValue('defaults', 'backend'), - 'match' => MATCH_STRING_NO_SPACE), + 'match' => MATCH_STRING_NO_SPACE, + 'field_type' => 'dropdown'), 'background_color' => Array('must' => 0, 'default' => $this->CORE->getMainCfg()->getValue('defaults', 'backgroundcolor'), 'match' => MATCH_COLOR), diff --git a/share/server/core/classes/WuiViewMapAddModify.php b/share/server/core/classes/WuiViewMapAddModify.php index cbecf5a..9e5c571 100644 --- a/share/server/core/classes/WuiViewMapAddModify.php +++ b/share/server/core/classes/WuiViewMapAddModify.php @@ -325,7 +325,8 @@ class WuiViewMapAddModify { } $options = $this->CORE->getDefinedBackends(); $selected = $this->MAPCFG->getValue($this->aOpts['type'], $this->aOpts['id'], $propname, TRUE); - $onChange = "getObjects(this.value,'".$type."','".$field."','".$this->MAPCFG->getValue($this->aOpts['type'],$this->aOpts['id'],$propname,TRUE)."');validateMapConfigFieldValue(this)"; + if($this->aOpts['type'] != 'global') + $onChange = "getObjects(this.value,'".$type."','".$field."','".$this->MAPCFG->getValue($this->aOpts['type'],$this->aOpts['id'],$propname,TRUE)."');validateMapConfigFieldValue(this)"; break; case 'host_name': ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
