MDL-50749 js: add some TODOs to some small hacks

This commit is contained in:
Dan Poltawski
2015-07-07 08:49:30 +01:00
parent 29f2ac3b81
commit 118c600ba5
6 changed files with 12 additions and 6 deletions
@@ -871,7 +871,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
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]')) {
Y.one('body').append('<input type="text" name="title" style="display: none">');
}
@@ -871,7 +871,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
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]')) {
Y.one('body').append('<input type="text" name="title" style="display: none">');
}
+3 -1
View File
@@ -667,7 +667,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
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]')) {
Y.one('body').append('<input type="text" name="title" style="display: none">');
}
@@ -556,7 +556,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
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
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
if (!Y.one('input[name=maxmark')) {
@@ -556,7 +556,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
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
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
if (!Y.one('input[name=maxmark')) {
+1 -1
View File
@@ -342,7 +342,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
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
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
if (!Y.one('input[name=maxmark')) {