[Nagvis-checkins] SF.net Git: nagvis: FIX: Fixed hiding of shapes during refresh ( enable_refresh=1
Brought to you by:
larsi-
From: lars <la...@us...> - 2013-04-30 14:15:07
|
Author: Lars Michelsen <lm...@la...> Date: Tue Apr 30 16:14:23 2013 +0200 Committer: Lars Michelsen <lm...@la...> Commit-Date: Tue Apr 30 16:14:23 2013 +0200 FIX: Fixed hiding of shapes during refresh (enable_refresh=1) --- ChangeLog | 1 + share/frontend/nagvis-js/js/NagVisShape.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e5e60e7..92d4fe9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ Geomap: Frontend: * FIX: Fixed "Undefined index" error when changing backend_id of maps + * FIX: Fixed hiding of shapes during refresh (enable_refresh=1) * Reverted change from 1.7.5 (Weathermap lines with byte/bit values in labels should print human) which broke the handling for some plugins diff --git a/share/frontend/nagvis-js/js/NagVisShape.js b/share/frontend/nagvis-js/js/NagVisShape.js index ed8b36f..da7a637 100644 --- a/share/frontend/nagvis-js/js/NagVisShape.js +++ b/share/frontend/nagvis-js/js/NagVisShape.js @@ -87,15 +87,13 @@ var NagVisShape = NagVisStatelessObject.extend({ // Extract external URLs if(this.conf.icon.match(/^\[(.*)\]$/)) this.conf.icon = this.conf.icon.replace(/^\[(.*)\]$/, '$1'); - else - this.conf.icon = oGeneralProperties.path_shapes + this.conf.icon; addZoomHandler(oIcon); if(this.conf.icon.indexOf('?') !== -1) { - oIcon.src = this.conf.icon+'&_t='+iNow; + oIcon.src = oGeneralProperties.path_shapes + this.conf.icon + '&_t=' + iNow; } else { - oIcon.src = this.conf.icon+'?_t='+iNow; + oIcon.src = oGeneralProperties.path_shapes + this.conf.icon + '?_t=' + iNow; } oIcon.alt = this.conf.type; |