Fixed bug 6999: Now when timeout, 'Timeout' text is shown
authorDavid Baz Fayos <david.baz@openbravo.com>
Tue, 10 Feb 2009 20:03:27 +0000
changeset 3051 262a3c3564b8
parent 3050 ecbfea44ef81
child 3052 dc3cf1513510
Fixed bug 6999: Now when timeout, 'Timeout' text is shown
src/org/openbravo/erpCommon/utility/VerticalMenu.html
--- a/src/org/openbravo/erpCommon/utility/VerticalMenu.html	Tue Feb 10 19:02:30 2009 +0000
+++ b/src/org/openbravo/erpCommon/utility/VerticalMenu.html	Tue Feb 10 20:03:27 2009 +0000
@@ -65,10 +65,18 @@
           }
           //layer("returnText", strText, true, false);
           document.getElementById("alertCount").innerHTML=strText;
-          if(parseFloat(strText) == 0 && document.getElementById("alertImage").className.indexOf("Menu_ToolBar_Button_Icon_alertActive") != -1)
-        	  setAlertIcon(false);
-          else if(parseFloat(strText) != 0 && document.getElementById("alertImage").className.indexOf("Menu_ToolBar_Button_Icon_alertActive") == -1)
-        	  setAlertIcon(true);
+
+          if (parseFloat(strText) == 0 && document.getElementById("alertImage").className.indexOf("Menu_ToolBar_Button_Icon_alertActive") != -1) {
+            setAlertIcon(false);
+          } else if (parseFloat(strText) != 0 && document.getElementById("alertImage").className.indexOf("Menu_ToolBar_Button_Icon_alertActive") == -1) {
+            setAlertIcon(true);
+          }
+
+          if (strText != "") {
+            if (parseFloat(strText) != strText) {
+              document.getElementById("alertLink").innerHTML="Timeout";
+            }
+          }
     /*
           if (strText==0) {
             document.getElementById("alertNotifier").style.display="none";
@@ -217,7 +225,7 @@
                 <a class="Menu_ToolBar_Button" href="#" onclick="menuAlerts();" onmouseover="window.status='Alert Management';return true;" onmouseout="window.status='';return true;" id="buttonAlerts"><img src="../../../../../web/images/blank.gif" class="Menu_ToolBar_Button_Icon Menu_ToolBar_Button_Icon_alert" border="0" alt="Alert" title="Alert" id="alertImage"/></a>
               </td>
 
-              <td class="Menu_ToolBar_textlabel_bg_body"><nobr><span id="alertNotifier"><a href="#" onclick="menuAlerts();" class="Menu_ToolBar_text_alert"><span class="Menu_ToolBar_text_alert_no" id="alertCount">0</span><span>&nbsp;</span>Alerts</a></span></nobr></td>
+              <td class="Menu_ToolBar_textlabel_bg_body"><nobr><span id="alertNotifier"><a href="#" onclick="menuAlerts();" class="Menu_ToolBar_text_alert" id="alertLink"><span class="Menu_ToolBar_text_alert_no" id="alertCount">0</span><span>&nbsp;</span>Alerts</a></span></nobr></td>
 
               <td width="1"><img class="Menu_ToolBar_textlabel_bg_right" src="../../../../../web/images/blank.gif" border="0" /></td>