Author:   Lars Michelsen <[email protected]>
Date:     Thu Jul 28 08:46:40 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Thu Jul 28 08:46:40 2011 +0200

Bugfix: Fixed problem with rotation links in header menu with IE8

---

 ChangeLog                                      |    2 +-
 share/frontend/nagvis-js/js/frontendMessage.js |    8 ++++++--
 share/userfiles/templates/default.header.html  |    4 ++--
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bacd146..0c6e878 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,7 +8,7 @@ Frontend
   * Bugfix: Fixed drawing of second part in two part lines in IE
   * Bugfix: Preventing text selections while dragging objects in IE
   * Bugfix: Fixed undefied var error when having no maps and displaying the 
overview page
-
+  * Bugfix: Fixed problem with rotation links in header menu with IE8
 Core
   * omd_install: Installing missing doc/ dir now; Cleaning cache files on 
install
   * Checking read permissions before reading directory contents
diff --git a/share/frontend/nagvis-js/js/frontendMessage.js 
b/share/frontend/nagvis-js/js/frontendMessage.js
index b6806ca..9b3cf1c 100644
--- a/share/frontend/nagvis-js/js/frontendMessage.js
+++ b/share/frontend/nagvis-js/js/frontendMessage.js
@@ -75,6 +75,10 @@ function frontendMessage(oMessage, iTimeout, key) {
         window.setTimeout(function() { frontendMessageHide(); }, 
iTimeout*1000);
     }
 
+    var imgPath = '/nagvis/frontend/nagvis-js/images/';
+    if(isset(oGeneralProperties) && isset(oGeneralProperties.path_images))
+        imgPath = oGeneralProperties.path_images
+
     oContainerDiv = document.createElement('div');
     oContainerDiv.setAttribute('id', 'messageBoxDiv');
 
@@ -133,7 +137,7 @@ function frontendMessage(oMessage, iTimeout, key) {
     oCell.style.width = '60px';
 
     oImg = document.createElement('img');
-    oImg.src = oGeneralProperties.path_images+'internal/msg_'+sBoxType+'.png';
+    oImg.src = imgPath + 'internal/msg_' + sBoxType + '.png';
 
     oCell.appendChild(oImg);
     oImg = null;
@@ -155,7 +159,7 @@ function frontendMessage(oMessage, iTimeout, key) {
     oCell.style.width = '60px';
 
     oImg = document.createElement('img');
-    oImg.src = oGeneralProperties.path_images+'internal/msg_'+sBoxType+'.png';
+    oImg.src = imgPath + 'internal/msg_' + sBoxType + '.png';
 
     oCell.appendChild(oImg);
     oImg = null;
diff --git a/share/userfiles/templates/default.header.html 
b/share/userfiles/templates/default.header.html
index 7a7730e..7f87b0d 100644
--- a/share/userfiles/templates/default.header.html
+++ b/share/userfiles/templates/default.header.html
@@ -41,8 +41,8 @@
             <li><a href="#" 
onclick="showFrontendDialog(oGeneralProperties.path_server+'?mod=AutoMap&act=modifyParams&show={$currentMap}'+getAutomapParams(),
 '{$langModifyAutomapParams}')">{$langModifyAutomapParams}</a></li>
             {/if}
             {if $bRotation == true}
-            <li id="rotationStart" style="display:none"><a onclick="#" 
href="switchRotation()">{$langRotationStart}</a></li>
-            <li id="rotationStop" style="display:inline"><a onclick="#" 
href="switchRotation()">{$langRotationStop}</a></li>
+            <li id="rotationStart" style="display:none"><a href="#" 
onclick="switchRotation()">{$langRotationStart}</a></li>
+            <li id="rotationStop" style="display:inline"><a href="#" 
onclick="switchRotation()">{$langRotationStop}</a></li>
             {/if}
             {if $mod == 'AutoMap' && $permittedEdit == true}
             <li><a href="#" 
onclick="showFrontendDialog(oGeneralProperties.path_server+'?mod=AutoMap&act=automapToMap&show=dialog',
 '{$langAutomapToMap}')">{$langAutomapToMap}</a></li>


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to