Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
5be14917
Commit
5be14917
authored
Oct 05, 2016
by
David Monllaó
Browse files
Merge branch 'wip-mdl-56210-fix' of
https://github.com/rajeshtaneja/moodle
parents
b02c1639
86ebbed6
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/form/form.js
View file @
5be14917
...
...
@@ -23,9 +23,6 @@ if (typeof M.form.dependencyManager === 'undefined') {
this
.
_hides
=
{};
this
.
_dirty
=
{};
// Let behat know that JS is pending.
M
.
util
.
js_pending
(
'
mform-dependency-manager-
'
+
this
.
get
(
'
form
'
).
get
(
'
id
'
));
// Setup event handlers.
Y
.
Object
.
each
(
this
.
get
(
'
dependencies
'
),
function
(
value
,
i
)
{
var
elements
=
this
.
elementsByName
(
i
);
...
...
@@ -59,9 +56,6 @@ if (typeof M.form.dependencyManager === 'undefined') {
},
this
);
this
.
updateAllDependencies
();
// Let behat know that JS is complete.
M
.
util
.
js_complete
(
'
mform-dependency-manager-
'
+
this
.
get
(
'
form
'
).
get
(
'
id
'
));
},
/**
...
...
@@ -595,12 +589,6 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
*/
M
.
form
.
updateFormState
=
function
(
formid
)
{
if
(
formid
in
M
.
form
.
dependencyManagers
)
{
// Let behat know that JS is pending.
M
.
util
.
js_pending
(
'
mform-dependency-manager-
'
+
formid
);
M
.
form
.
dependencyManagers
[
formid
].
updateAllDependencies
();
// Let behat know that JS is complete.
M
.
util
.
js_complete
(
'
mform-dependency-manager-
'
+
formid
);
}
};
mod/lti/tests/behat/addtool.feature
View file @
5be14917
...
...
@@ -32,11 +32,10 @@ Feature: Add tools
And
I turn editing mode on
And
I add a
"Teaching Tool 1"
to section
"1"
# For tool that does not support Content-Item message type, the Select content button must be disabled.
And
I wait until the page is ready
And
the
"Select content"
"button"
should be disabled
And
I set the field
"Activity name"
to
"Test tool activity 1"
And
I click on
"Show more..."
"link"
And
I set the field
"Launch container"
to
"Embed"
And
the
"Select content"
"button"
should be disabled
And
I press
"Save and return to course"
And
I open
"Test tool activity 1"
actions menu
And
I choose
"Edit settings"
in the open action menu
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment