mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19692: Completion tracking help icon enhancements
This commit is contained in:
parent
02b126af8a
commit
905b1de634
5 changed files with 29 additions and 3 deletions
|
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue