Module: nagvis Branch: master Commit: 7f1f96c9ee5e82eb3b7bed4a80babea39683150d URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=7f1f96c9ee5e82eb3b7bed4a80babea39683150d
Author: Lars Michelsen <[email protected]> Date: Tue Jan 4 22:54:02 2011 +0100 Fixed small coding errors --- share/frontend/nagvis-js/js/NagVisObject.js | 2 +- .../frontend/nagvis-js/js/NagVisStatefulObject.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/js/NagVisObject.js b/share/frontend/nagvis-js/js/NagVisObject.js index 33ee6bd..13e2533 100644 --- a/share/frontend/nagvis-js/js/NagVisObject.js +++ b/share/frontend/nagvis-js/js/NagVisObject.js @@ -195,7 +195,7 @@ var NagVisObject = Base.extend({ oSectionMacros.host = '<!--\\sBEGIN\\shost\\s-->.+?<!--\\sEND\\shost\\s-->'; if(this.conf.view_type !== 'line') - oSectionMacros.host = '<!--\\sBEGIN\\sline\\s-->.+?<!--\\sEND\\sline\\s-->'; + oSectionMacros.line = '<!--\\sBEGIN\\sline\\s-->.+?<!--\\sEND\\sline\\s-->'; // Replace hostgroup range macros when not in a hostgroup if(this.conf.type !== 'hostgroup') diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js b/share/frontend/nagvis-js/js/NagVisStatefulObject.js index 8d15fe2..ab521d1 100644 --- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js +++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js @@ -998,7 +998,7 @@ var NagVisStatefulObject = NagVisObject.extend({ var x = this.conf.x.split(','); var y = this.conf.y.split(','); - if(this.conf.line_type != 10 || this.conf.line_type != 13 || this.conf.line_type != 14) { + if(this.conf.line_type != 10 && this.conf.line_type != 13 && this.conf.line_type != 14) { alert('Not available for this line. Only lines with 2 line parts have a middle coordinate.'); return; } ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
