mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 07:39:54 +02:00
quiz editing: MDL-17298 use onDOMReady instead of onload.
In the previous commit to this file (1.2) I accidentally tried to do this already, but did it wrong, so javascript dialogs did not work.
This commit is contained in:
parent
e81702f83a
commit
12e6b459c6
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
YAHOO.namespace("cats.container");
|
||||
YAHOO.namespace("quiz.container");
|
||||
function init() {
|
||||
alert("loadde");
|
||||
YAHOO.util.Dom.setStyle('randomquestiondialog', 'display', 'block');
|
||||
/* zIndex must be way above 99 to be above the active quiz tab*/
|
||||
YAHOO.quiz.container.randomquestiondialog = new YAHOO.widget.Dialog("randomquestiondialog",
|
||||
|
@ -72,5 +73,5 @@ function init() {
|
|||
|
||||
}
|
||||
|
||||
YAHOO.util.Event.addListener(window, "onDomReady", init,phpGenerated,true);
|
||||
YAHOO.util.Event.onDOMReady(init,phpGenerated,true);
|
||||
YAHOO.util.Dom.setStyle('repaginatedialog', 'display', 'block');
|
Loading…
Add table
Add a link
Reference in a new issue