]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, display file name after file downloaded"
authordongsheng <dongsheng>
Mon, 1 Sep 2008 02:00:15 +0000 (02:00 +0000)
committerdongsheng <dongsheng>
Mon, 1 Sep 2008 02:00:15 +0000 (02:00 +0000)
lib/form/filepicker.php

index 9a51ef5f79590ae078f41e7c8e2f9a328749b25a..216dc2c18a9385c0cf48f1b2f83b0a8122518384 100644 (file)
@@ -64,8 +64,8 @@ class MoodleQuickForm_filepicker extends HTML_QuickForm_button
             $filearea = $this->_filearea;
             $str .= <<<EOD
 <script type="text/javascript">
-function updatefile_$suffix(){
-    document.getElementById('repo_info_$suffix').innerHTML = '$strsaved';
+function updatefile_$suffix(str){
+    document.getElementById('repo_info_$suffix').innerHTML = str;
 }
 function callpicker_$suffix(){
     document.body.className += ' yui-skin-sam';