Module: nagvis
Branch: nagvis-1.4
Commit: 9ed20b96b54f08bdc5700e73b7461f49a958cab9
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=9ed20b96b54f08bdc5700e73b7461f49a958cab9

Author: LaMi <[email protected]>
Date:   Sat Jan 16 20:27:43 2010 +0100

#183 Fixed syntax error when nothing selected

---

 nagvis/wui/includes/js/wui.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nagvis/wui/includes/js/wui.js b/nagvis/wui/includes/js/wui.js
index e27e4b5..2068b98 100644
--- a/nagvis/wui/includes/js/wui.js
+++ b/nagvis/wui/includes/js/wui.js
@@ -397,7 +397,7 @@ function formSubmit(formId, action) {
                if(aFields[i].name.charAt(0) !== '_') {
                        
                        // Check if the value of the input helper field should 
be used
-                       if(aFields[i].options[aFields[i].selectedIndex].value 
=== lang['manualInput']) {
+                       if(aFields[i].selectedIndex !== -1 || 
aFields[i].options[aFields[i].selectedIndex].value === lang['manualInput']) {
                                getstr += aFields[i].name + "=" + 
escapeUrlValues(document.getElementById('_inp_'+aFields[i].name).value) + "&";
                        } else {
                                getstr += aFields[i].name + "=" + 
escapeUrlValues(aFields[i].options[aFields[i].selectedIndex].value) + "&";


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to