quiz editing: MDL-17298 use onDOMReady instead of onload.
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.

dilawar/moodle