MDL-19692: Completion tracking help icon enhancements

This commit is contained in:
sam_marshall 2009-07-14 14:00:34 +00:00
parent 02b126af8a
commit 905b1de634
5 changed files with 29 additions and 3 deletions

View file

@ -92,4 +92,18 @@ function completion_toggle(e) {
'id='+this.cmid+'&completionstate='+this.otherState+'&fromajax=1');
}
YAHOO.util.Event.onDOMReady(completion_init);
function completion_set_progressicon_visibility(spanid,displaystatus) {
// Check if the progress icon exists
if (document.getElementById(spanid)!= null) {
if (displaystatus=='show') {
document.getElementById(spanid).style.display="block";
}
else if (displaystatus=='hide') {
document.getElementById(spanid).style.display="none";
}
else {
alert ("An error occurred when calling completion_set_progressicon_visibility() function.");
}
}
}