Module: nagvis
Branch: master
Commit: 188a11adc60751c9fe537eee52eb636dc8952077
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=188a11adc60751c9fe537eee52eb636dc8952077

Author: LaMi <[email protected]>
Date:   Fri May 14 19:44:42 2010 +0200

#282 The src parameter in images to be refreshed in the hover template does not 
need to be the last one in image tags now

---

 share/frontend/nagvis-js/js/hover.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/frontend/nagvis-js/js/hover.js 
b/share/frontend/nagvis-js/js/hover.js
index dc74f67..34a3f0b 100644
--- a/share/frontend/nagvis-js/js/hover.js
+++ b/share/frontend/nagvis-js/js/hover.js
@@ -316,7 +316,7 @@ function replaceHoverTemplateStaticMacros(replaceChild, 
oObj, sTemplateCode) {
        
        // Search for images and append current timestamp to src (prevent 
caching of
        // images e.a. when some graphs should be fresh)
-       var regex = new RegExp("<img.*src=['\"]?([^>'\"]*)['\"]?>", 'gi');
+       var regex = new RegExp("<img.*src=['\"]?([^>'\"]*)['\"]?", 'gi');
        var results = regex.exec(sTemplateCode);
        if(results !== null) {
                for(var i = 0, len = results.length; i < len; i=i+2) {


------------------------------------------------------------------------------

_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to