Commit 585ba846 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'mdl-56831-master' of https://github.com/Dagefoerde/moodle

parents 55e54953 c2e12335
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -45,7 +45,7 @@ define(['jquery', 'core/yui'], function($, Y) {
init: function(startButton, confirmationTitle, confirmationForm, popupoptions) {
var finalStartButton = startButton;
Y.use('moodle-core-notification', 'moodle-core-formchangechecker', 'io-form', function() {
Y.use('moodle-core-notification', function() {
if (Y.one(confirmationForm)) {
t.confirmDialogue = new M.core.dialogue({
headerContent: confirmationTitle,
......@@ -99,13 +99,15 @@ define(['jquery', 'core/yui'], function($, Y) {
*/
launchQuizPopup: function(e, popupoptions) {
e.halt();
M.core_formchangechecker.reset_form_dirty_state();
var form = e.target.ancestor('form');
window.openpopup(e, {
url: form.get('action') + '?' + Y.IO.stringify(form).replace(/\bcancel=/, 'x='),
windowname: 'quizpopup',
options: popupoptions,
fullscreen: true,
Y.use('moodle-core-formchangechecker', 'io-form', function() {
M.core_formchangechecker.reset_form_dirty_state();
var form = e.target.ancestor('form');
window.openpopup(e, {
url: form.get('action') + '?' + Y.IO.stringify(form).replace(/\bcancel=/, 'x='),
windowname: 'quizpopup',
options: popupoptions,
fullscreen: true,
});
});
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment