MDL-47959 mod_quiz: fixed 0 questions bug
This commit is contained in:
+2
-2
@@ -124,10 +124,10 @@ Y.extend(TOOLBOX, Y.Base, {
|
||||
} catch (e) {}
|
||||
|
||||
// Run the callback if we have one.
|
||||
if (responsetext.newsummarks) {
|
||||
if (responsetext.hasOwnProperty('newsummarks')) {
|
||||
Y.one(SELECTOR.SUMMARKS).setHTML(responsetext.newsummarks);
|
||||
}
|
||||
if (responsetext.newnumquestions) {
|
||||
if (responsetext.hasOwnProperty('newnumquestions')) {
|
||||
Y.one(SELECTOR.NUMQUESTIONS).setHTML(M.util.get_string('numquestionsx', 'quiz', responsetext.newnumquestions));
|
||||
}
|
||||
if (success_callback) {
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -124,10 +124,10 @@ Y.extend(TOOLBOX, Y.Base, {
|
||||
} catch (e) {}
|
||||
|
||||
// Run the callback if we have one.
|
||||
if (responsetext.newsummarks) {
|
||||
if (responsetext.hasOwnProperty('newsummarks')) {
|
||||
Y.one(SELECTOR.SUMMARKS).setHTML(responsetext.newsummarks);
|
||||
}
|
||||
if (responsetext.newnumquestions) {
|
||||
if (responsetext.hasOwnProperty('newnumquestions')) {
|
||||
Y.one(SELECTOR.NUMQUESTIONS).setHTML(M.util.get_string('numquestionsx', 'quiz', responsetext.newnumquestions));
|
||||
}
|
||||
if (success_callback) {
|
||||
|
||||
+2
-2
@@ -122,10 +122,10 @@ Y.extend(TOOLBOX, Y.Base, {
|
||||
} catch (e) {}
|
||||
|
||||
// Run the callback if we have one.
|
||||
if (responsetext.newsummarks) {
|
||||
if (responsetext.hasOwnProperty('newsummarks')) {
|
||||
Y.one(SELECTOR.SUMMARKS).setHTML(responsetext.newsummarks);
|
||||
}
|
||||
if (responsetext.newnumquestions) {
|
||||
if (responsetext.hasOwnProperty('newnumquestions')) {
|
||||
Y.one(SELECTOR.NUMQUESTIONS).setHTML(M.util.get_string('numquestionsx', 'quiz', responsetext.newnumquestions));
|
||||
}
|
||||
if (success_callback) {
|
||||
|
||||
Reference in New Issue
Block a user