mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-20636 Finish making ddwtos work, mostly. Also various other JS fixes.
This JavaScript really needs to be rewritten to use YUI3.
This commit is contained in:
parent
706d06e29b
commit
0fafed0f09
5 changed files with 30 additions and 11 deletions
|
@ -35,7 +35,7 @@ M.core_question_preview.init = function(Y) {
|
|||
|
||||
// Add a close button to the window.
|
||||
var closebutton = Y.Node.create('<input type="button" />');
|
||||
button.value = M.str.question.closepreview;
|
||||
closebutton.set('value', M.str.question.closepreview);
|
||||
Y.one('#previewcontrols').append(closebutton);
|
||||
Y.on('click', function() { window.close() }, closebutton);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue