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:
Petr Skoda
2010-01-26 10:35:13 +00:00
parent 5668690321
commit 10eaeca808
4 changed files with 21 additions and 22 deletions

View File

@@ -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;