MDL-19580 cleanup of require css and js filepicker code

This commit is contained in:
skodak 2009-06-24 22:34:29 +00:00
parent b14e77c966
commit ff5fe31160
14 changed files with 169 additions and 121 deletions

View file

@ -193,6 +193,8 @@ class resource_file extends resource_base {
*/
function display() {
global $CFG, $THEME, $USER, $PAGE;
///Yahoo javascript libaries for updating embedded object size
$PAGE->requires->yui_lib('container');
/// Set up generic stuff first, including checking for access
parent::display();
@ -386,8 +388,6 @@ class resource_file extends resource_base {
if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == "frame" || $resource->options == "objectframe") and empty($USER->screenreader)) {
/// display the resource into a object tag
if ($resource->options == "objectframe") {
///Yahoo javascript libaries for updating embedded object size
$PAGE->requires->yui_lib('container');
///Moodle Header and navigation bar
$navigation = build_navigation($this->navlinks, $cm);