MDL-55593 form: Wrap skip validation variable in script tag

Part of MDL-55071
This commit is contained in:
Frederic Massart
2016-09-23 10:55:18 +01:00
committed by Dan Poltawski
parent 928177d139
commit 3264bf5b56
+1 -1
View File
@@ -2363,7 +2363,7 @@ require(["core/event", "jquery"], function(Event, $) {
$PAGE->requires->js_amd_inline($js);
// Global variable used to skip the client validation.
return 'var skipClientValidation = false;';
return html_writer::tag('script', 'var skipClientValidation = false;');
} // end func getValidationScript
/**