mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-50749 js: add some TODOs to some small hacks
This commit is contained in:
parent
da24257a3b
commit
f79860257a
6 changed files with 12 additions and 6 deletions
|
@ -870,7 +870,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||||
activity.one(SELECTOR.EDITTITLE).focus();
|
activity.one(SELECTOR.EDITTITLE).focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Hack for Behat compatibility.
|
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
|
||||||
|
// MinkSelenium2Driver that fixes
|
||||||
|
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
||||||
if (!Y.one('input[name=title]')) {
|
if (!Y.one('input[name=title]')) {
|
||||||
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
||||||
}
|
}
|
||||||
|
|
|
@ -870,7 +870,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||||
activity.one(SELECTOR.EDITTITLE).focus();
|
activity.one(SELECTOR.EDITTITLE).focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Hack for Behat compatibility.
|
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
|
||||||
|
// MinkSelenium2Driver that fixes
|
||||||
|
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
||||||
if (!Y.one('input[name=title]')) {
|
if (!Y.one('input[name=title]')) {
|
||||||
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
||||||
}
|
}
|
||||||
|
|
4
course/yui/src/toolboxes/js/resource.js
vendored
4
course/yui/src/toolboxes/js/resource.js
vendored
|
@ -666,7 +666,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||||
activity.one(SELECTOR.EDITTITLE).focus();
|
activity.one(SELECTOR.EDITTITLE).focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Hack for Behat compatibility.
|
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
|
||||||
|
// MinkSelenium2Driver that fixes
|
||||||
|
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
||||||
if (!Y.one('input[name=title]')) {
|
if (!Y.one('input[name=title]')) {
|
||||||
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
||||||
}
|
}
|
||||||
|
|
|
@ -566,7 +566,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||||
activity.one(SELECTOR.EDITMAXMARK).focus();
|
activity.one(SELECTOR.EDITMAXMARK).focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
// This hack is to keep Behat happy until they release a version of
|
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
|
||||||
// MinkSelenium2Driver that fixes
|
// MinkSelenium2Driver that fixes
|
||||||
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
||||||
if (!Y.one('input[name=maxmark')) {
|
if (!Y.one('input[name=maxmark')) {
|
||||||
|
|
|
@ -566,7 +566,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||||
activity.one(SELECTOR.EDITMAXMARK).focus();
|
activity.one(SELECTOR.EDITMAXMARK).focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
// This hack is to keep Behat happy until they release a version of
|
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
|
||||||
// MinkSelenium2Driver that fixes
|
// MinkSelenium2Driver that fixes
|
||||||
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
||||||
if (!Y.one('input[name=maxmark')) {
|
if (!Y.one('input[name=maxmark')) {
|
||||||
|
|
2
mod/quiz/yui/src/toolboxes/js/resource.js
vendored
2
mod/quiz/yui/src/toolboxes/js/resource.js
vendored
|
@ -344,7 +344,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||||
activity.one(SELECTOR.EDITMAXMARK).focus();
|
activity.one(SELECTOR.EDITMAXMARK).focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
// This hack is to keep Behat happy until they release a version of
|
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
|
||||||
// MinkSelenium2Driver that fixes
|
// MinkSelenium2Driver that fixes
|
||||||
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
|
||||||
if (!Y.one('input[name=maxmark')) {
|
if (!Y.one('input[name=maxmark')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue