src/org/openbravo/erpCommon/ad_forms/ModuleManagementInstalled.html
changeset 8525 c8cc677ecd99
parent 8444 b7e55cf8773c
child 8778 28cb24e774cc
--- a/src/org/openbravo/erpCommon/ad_forms/ModuleManagementInstalled.html	Sun Oct 03 17:02:37 2010 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/ModuleManagementInstalled.html	Wed Oct 06 12:03:47 2010 +0200
@@ -96,6 +96,18 @@
         if (XMLHttpRequestObj.responseText) {
           strText = XMLHttpRequestObj.responseText;
 
+          // revert all tree item icons to default state
+          var treeItems = document.getElementsByClassName('Tree_Row');
+          for (var i=1;i<treeItems.length;i++) {
+              var treeItemChildren = treeItems[i].childNodes;
+
+              for (var j=1;j<treeItemChildren.length;j++) {
+                  if(treeItemChildren[j].id == "icon"){
+                	  treeItemChildren[j].childNodes[1].setAttribute("class","");
+                  }
+              }
+          }
+          
           var elements = strText.split("|");
           document.getElementById('notifications').innerHTML=elements[0];
           for (var i=1;i<elements.length;i++) {