mirror of
https://github.com/moodle/moodle.git
synced 2025-07-23 23:31:58 +02:00
MDL-21403 hardcoded JS legacy code should not use new $PAGE->requires-> api, switching to html_writer instead + improved ufo embedding
This commit is contained in:
@@ -33,6 +33,10 @@ M.util.image_url = function(imagename, component) {
|
||||
return url;
|
||||
};
|
||||
|
||||
M.util.create_UFO_object = function (eid, FO) {
|
||||
UFO.create(FO, eid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Init a collapsible region, see print_collapsible_region in weblib.php
|
||||
* @param Object YUI3 instance with all libraries loaded
|
||||
@@ -1218,9 +1222,6 @@ function old_onload_focus(formid, controlname) {
|
||||
}
|
||||
}
|
||||
|
||||
function create_UFO_object(eid) {
|
||||
UFO.create(FO, eid);
|
||||
}
|
||||
function build_querystring(obj) {
|
||||
if (typeof obj !== 'object') {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user