mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-75848' of https://github.com/paulholden/moodle
This commit is contained in:
commit
b2368a421b
@ -601,9 +601,9 @@ EditorPluginButtons.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure menu button was clicked, and isn't itself disabled.
|
||||
var menuButton = e.currentTarget.ancestor('button', true);
|
||||
if (menuButton.hasAttribute(DISABLED)) {
|
||||
// Exit early if the clicked button was disabled.
|
||||
if (menuButton === null || menuButton.hasAttribute(DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -599,9 +599,9 @@ EditorPluginButtons.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure menu button was clicked, and isn't itself disabled.
|
||||
var menuButton = e.currentTarget.ancestor('button', true);
|
||||
if (menuButton.hasAttribute(DISABLED)) {
|
||||
// Exit early if the clicked button was disabled.
|
||||
if (menuButton === null || menuButton.hasAttribute(DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -451,9 +451,9 @@ EditorPluginButtons.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure menu button was clicked, and isn't itself disabled.
|
||||
var menuButton = e.currentTarget.ancestor('button', true);
|
||||
if (menuButton.hasAttribute(DISABLED)) {
|
||||
// Exit early if the clicked button was disabled.
|
||||
if (menuButton === null || menuButton.hasAttribute(DISABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user