mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-54986 Quiz: Disable add button for quiz with attempts
This commit is contained in:
parent
cad8adccc7
commit
6e1e299554
4 changed files with 8 additions and 8 deletions
|
@ -152,7 +152,7 @@ ACTIONMENU.prototype = {
|
||||||
if (!menucontent.hasClass('align-' + align)) {
|
if (!menucontent.hasClass('align-' + align)) {
|
||||||
menucontent.addClass('align-' + align);
|
menucontent.addClass('align-' + align);
|
||||||
}
|
}
|
||||||
if (menucontent.hasChildNodes()) {
|
if (menucontent.getDOMNode().childElementCount) {
|
||||||
menu.setAttribute('data-enhanced', '1');
|
menu.setAttribute('data-enhanced', '1');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -450,7 +450,7 @@ ACTIONMENU.prototype = {
|
||||||
this.constrain(menucontent.set('aria-hidden', false));
|
this.constrain(menucontent.set('aria-hidden', false));
|
||||||
|
|
||||||
this.menuChildren = this.dialogue.all(SELECTOR.MENUCHILD);
|
this.menuChildren = this.dialogue.all(SELECTOR.MENUCHILD);
|
||||||
if (this.menuChildren) {
|
if (this.menuChildren.size() > 0) {
|
||||||
this.firstMenuChild = this.menuChildren.item(0);
|
this.firstMenuChild = this.menuChildren.item(0);
|
||||||
this.lastMenuChild = this.menuChildren.item(this.menuChildren.size() - 1);
|
this.lastMenuChild = this.menuChildren.item(this.menuChildren.size() - 1);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -151,7 +151,7 @@ ACTIONMENU.prototype = {
|
||||||
if (!menucontent.hasClass('align-' + align)) {
|
if (!menucontent.hasClass('align-' + align)) {
|
||||||
menucontent.addClass('align-' + align);
|
menucontent.addClass('align-' + align);
|
||||||
}
|
}
|
||||||
if (menucontent.hasChildNodes()) {
|
if (menucontent.getDOMNode().childElementCount) {
|
||||||
menu.setAttribute('data-enhanced', '1');
|
menu.setAttribute('data-enhanced', '1');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -446,7 +446,7 @@ ACTIONMENU.prototype = {
|
||||||
this.constrain(menucontent.set('aria-hidden', false));
|
this.constrain(menucontent.set('aria-hidden', false));
|
||||||
|
|
||||||
this.menuChildren = this.dialogue.all(SELECTOR.MENUCHILD);
|
this.menuChildren = this.dialogue.all(SELECTOR.MENUCHILD);
|
||||||
if (this.menuChildren) {
|
if (this.menuChildren.size() > 0) {
|
||||||
this.firstMenuChild = this.menuChildren.item(0);
|
this.firstMenuChild = this.menuChildren.item(0);
|
||||||
this.lastMenuChild = this.menuChildren.item(this.menuChildren.size() - 1);
|
this.lastMenuChild = this.menuChildren.item(this.menuChildren.size() - 1);
|
||||||
|
|
||||||
|
|
4
lib/yui/src/actionmenu/js/actionmenu.js
vendored
4
lib/yui/src/actionmenu/js/actionmenu.js
vendored
|
@ -150,7 +150,7 @@ ACTIONMENU.prototype = {
|
||||||
if (!menucontent.hasClass('align-' + align)) {
|
if (!menucontent.hasClass('align-' + align)) {
|
||||||
menucontent.addClass('align-' + align);
|
menucontent.addClass('align-' + align);
|
||||||
}
|
}
|
||||||
if (menucontent.hasChildNodes()) {
|
if (menucontent.getDOMNode().childElementCount) {
|
||||||
menu.setAttribute('data-enhanced', '1');
|
menu.setAttribute('data-enhanced', '1');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -448,7 +448,7 @@ ACTIONMENU.prototype = {
|
||||||
this.constrain(menucontent.set('aria-hidden', false));
|
this.constrain(menucontent.set('aria-hidden', false));
|
||||||
|
|
||||||
this.menuChildren = this.dialogue.all(SELECTOR.MENUCHILD);
|
this.menuChildren = this.dialogue.all(SELECTOR.MENUCHILD);
|
||||||
if (this.menuChildren) {
|
if (this.menuChildren.size() > 0) {
|
||||||
this.firstMenuChild = this.menuChildren.item(0);
|
this.firstMenuChild = this.menuChildren.item(0);
|
||||||
this.lastMenuChild = this.menuChildren.item(this.menuChildren.size() - 1);
|
this.lastMenuChild = this.menuChildren.item(this.menuChildren.size() - 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue