Module: nagvis Branch: master Commit: 369d7544eb932c17b13d95687a589ce7a4130d96 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=369d7544eb932c17b13d95687a589ce7a4130d96
Author: Lars Michelsen <[email protected]> Date: Thu Jul 22 11:29:37 2010 +0200 Added the backend_id macro to context menus (was added to hover menus before but still missing in context menus) --- docs/en_US/context_templates.html | 3 +++ share/frontend/nagvis-js/js/NagVisObject.js | 1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/docs/en_US/context_templates.html b/docs/en_US/context_templates.html index ba2c735..beda16c 100644 --- a/docs/en_US/context_templates.html +++ b/docs/en_US/context_templates.html @@ -28,6 +28,9 @@ <td>[name]</td><td>Name of the object (Hostname, Hostgroupname, Servicegroupname, Mapname,...)</td> </tr> <tr> + <td>[backend_id]</td><td>Represents the backend_id of the used backend for this object <font color="#ff0000">(New in 1.5.2)</font>.</td> + </tr> + <tr> <td>[custom_1]</td><td>Represents the first custom macro which can be defined per backend. Might be useful to set backend individual URLs <font color="#ff0000">(New in 1.5)</font>.</td> </tr> <tr> diff --git a/share/frontend/nagvis-js/js/NagVisObject.js b/share/frontend/nagvis-js/js/NagVisObject.js index 96eccae..dfd379f 100644 --- a/share/frontend/nagvis-js/js/NagVisObject.js +++ b/share/frontend/nagvis-js/js/NagVisObject.js @@ -167,6 +167,7 @@ var NagVisObject = Base.extend({ oMacros.name = this.conf.name; oMacros.address = this.conf.address; oMacros.html_cgi = this.conf.htmlcgi; + oMacros.backend_id = this.conf.backend_id; oMacros.custom_1 = this.conf.custom_1; oMacros.custom_2 = this.conf.custom_2; oMacros.custom_3 = this.conf.custom_3; ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
