Module: nagvis Branch: nagvis-1.4 Commit: c1a700950c1b6488e53551b5d9fd1e5f0ae011a9 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=c1a700950c1b6488e53551b5d9fd1e5f0ae011a9
Author: LaMi <[email protected]> Date: Thu Jan 21 09:42:01 2010 +0100 #183 Fixed syntax error when no object name selected in WUI add/modify dialog --- 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 2068b98..9aed3ca 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].selectedIndex !== -1 || 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
