MDL-38356 JavaScript: Correct the test for currentform
This commit is contained in:
+1
-3
@@ -16,9 +16,7 @@ YUI.add('moodle-core-formchangechecker',
|
||||
*/
|
||||
initializer : function(config) {
|
||||
var formid = 'form#' + this.get('formid');
|
||||
|
||||
if (!currentform) {
|
||||
// If the form was not found, then we can't check for changes.
|
||||
if (!Y.one(formid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user