Commit b30115cd authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1703261: Adding missing script ending tag

and fixing "addLoadEvent is not defined" error message

behatnotneeded

Change-Id: Ifad07033b35004372d556dcf8f5a43dbc5d770e3
parent 9f3ee5e3
......@@ -128,6 +128,6 @@ function pieform_element_layout(Pieform $form, $element) {
}
function pieform_element_layout_get_headdata($element) {
$result = '<script src="' . get_config('wwwroot') . 'js/customlayout.js?v=' . get_config('cacheversion', 0) . '" type="application/javascript">';
$result = '<script src="' . get_config('wwwroot') . 'js/customlayout.js?v=' . get_config('cacheversion', 0) . '" type="application/javascript"></script>';
return array($result);
}
......@@ -396,7 +396,7 @@ function get_max_custom_rows() {
return {$maxlayoutrows};
}
addLoadEvent(function () {
jQuery(function () {
formchangemanager.add("{$pieformname}");
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment