META-INF.adf.jsLibs.StatusIndicator.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trinidad-impl Show documentation
Show all versions of trinidad-impl Show documentation
Private implementation of the Apache MyFaces Trinidad project
The newest version!
function TrStatusIndicator()
{
}
TrStatusIndicator._register=function(a0)
{
if(!TrStatusIndicator._registered)
{
TrStatusIndicator._registered=new Object();
TrPage.getInstance().getRequestQueue().addStateChangeListener(
TrStatusIndicator._handleStateChange);
}
TrStatusIndicator._registered[a0]=true;
}
TrStatusIndicator._handleStateChange=function(a1)
{
var a2=a1==TrRequestQueue.STATE_BUSY;
for(id in TrStatusIndicator._registered)
{
var a3=document.getElementById(id+"::busy");
if(!a3)
continue;
a3.style.display=a2?"inline":"none";
var a4=document.getElementById(id+"::ready");
a4.style.display=a2?"none":"inline";
}
}