Ignore:
Timestamp:
2013-09-04T15:18:01+12:00 (11 years ago)
Author:
sjm84
Message:

Added a clear method to StatusBar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentmaker_scripts_util.js

    r28168 r28209  
    10781078        }
    10791079    }
     1080   
     1081    this.clear = function()
     1082    {
     1083        for(var p in _statusMap)
     1084        {
     1085            if(_statusMap.hasOwnProperty(p))
     1086            {
     1087                if(_statusMap[p] && _statusMap[p].parentNode)
     1088                {
     1089                    removeFromParent(_statusMap[p]);
     1090                }
     1091           
     1092                if(--_activeMessages == 0)
     1093                {
     1094                    _mainElem.style.display = "none";
     1095                }
     1096            }
     1097        }
     1098    }
    10801099}
    10811100
Note: See TracChangeset for help on using the changeset viewer.