"MDL-16597, added more docs, clean up code and added maxbytes support"

This commit is contained in:
Dongsheng Cai
2009-12-07 05:01:09 +00:00
parent 8a87691355
commit 494bf5c8cf
5 changed files with 293 additions and 176 deletions
+2 -2
View File
@@ -210,7 +210,7 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element {
$CFG->filemanagerjsloaded = true;
// print html template
$html .= <<<FMHTML
<div id="fm-tmpl" style="display:none"><div class="fm-file-menu">___action___</div> <div class="fm-file-name">___fullname___</div></div>
<div id="fm-template" style="display:none"><div class="fm-file-menu">___action___</div> <div class="fm-file-name">___fullname___</div></div>
FMHTML;
}
@@ -239,7 +239,7 @@ FMHTML;
$html .= $PAGE->requires->js_function_call('destroy_item', array("nonjs-filemanager-{$client_id}"))->asap();
$html .= $PAGE->requires->js_function_call('show_item', array("filemanager-wrapper-{$client_id}"))->asap();
$PAGE->requires->js_function_call('setup_filebrowser', array($client_id, $options))->on_dom_ready();
$PAGE->requires->js_function_call('launch_filemanager', array($client_id, $options))->on_dom_ready();
return $html;
}