Module: nagvis
Branch: master
Commit: 6965d635223b9d7110d5943881daf36ecb94303e
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=6965d635223b9d7110d5943881daf36ecb94303e

Author: Lars Michelsen <[email protected]>
Date:   Tue Nov  3 19:55:59 2009 +0100

Fixed double alert boxes on invalid form input

---

 share/frontend/wui/classes/WuiAddModify.php   |    2 +-
 share/frontend/wui/classes/WuiEditMainCfg.php |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/frontend/wui/classes/WuiAddModify.php 
b/share/frontend/wui/classes/WuiAddModify.php
index 4b63d43..40bf094 100644
--- a/share/frontend/wui/classes/WuiAddModify.php
+++ b/share/frontend/wui/classes/WuiAddModify.php
@@ -70,7 +70,7 @@ class WuiAddModify extends GlobalPage {
                $this->FORM = new GlobalForm(Array('name' => 'addmodify',
                        'id' => 'addmodify',
                        'method' => '',
-                       'action' => 'javascript:(validateMapCfgForm()) ? 
formSubmit(\'addmodify\', \''.$action.'\') : alert(\'\');',
+                       'action' => 'javascript:(validateMapCfgForm()) ? 
formSubmit(\'addmodify\', \''.$action.'\');',
                        'cols' => '2'));
                
                $code .= $this->getJsIncludes();
diff --git a/share/frontend/wui/classes/WuiEditMainCfg.php 
b/share/frontend/wui/classes/WuiEditMainCfg.php
index 9bd8d85..dd282ad 100644
--- a/share/frontend/wui/classes/WuiEditMainCfg.php
+++ b/share/frontend/wui/classes/WuiEditMainCfg.php
@@ -57,7 +57,7 @@ class WuiEditMainCfg extends GlobalPage {
                
                $this->FORM = new GlobalForm(Array('name' => 'edit_config',
                        'id' => 'edit_config',
-                       'action' => 'javascript:(validateMainCfgForm()) ? 
formSubmit(\'edit_config\', \'updateMainCfg\') : alert(\'\');',
+                       'action' => 'javascript:(validateMainCfgForm()) ? 
formSubmit(\'edit_config\', \'updateMainCfg\');',
                        'method' => '',
                        'cols' => '3'));
                


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to