Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
585ba846
Commit
585ba846
authored
Nov 14, 2016
by
Dan Poltawski
Browse files
Merge branch 'mdl-56831-master' of
https://github.com/Dagefoerde/moodle
parents
55e54953
c2e12335
Changes
2
Hide whitespace changes
Inline
Side-by-side
mod/quiz/amd/build/preflightcheck.min.js
View file @
585ba846
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
mod/quiz/amd/src/preflightcheck.js
View file @
585ba846
...
...
@@ -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
(
/
\b
cancel=/
,
'
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
(
/
\b
cancel=/
,
'
x=
'
),
windowname
:
'
quizpopup
'
,
options
:
popupoptions
,
fullscreen
:
true
,
});
});
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment