From: dongsheng Date: Sun, 16 Aug 2009 03:46:15 +0000 (+0000) Subject: "MDL-16697, fixed parameters" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7a0c240306f535dcc9af7bc406d3eab9073aced8;p=moodle.git "MDL-16697, fixed parameters" --- diff --git a/lib/form/filepicker.js b/lib/form/filepicker.js index 25623009ba..551b6a052b 100644 --- a/lib/form/filepicker.js +++ b/lib/form/filepicker.js @@ -1,7 +1,9 @@ function filepicker_callback(params) { var html = '
'+params['file']+''; - html += 'Delete'; + // TODO: support delete the draft file + //html += 'Delete'; html += '
'; + alert(html); document.getElementById('file_info_'+params['client_id']).innerHTML = html; } diff --git a/lib/form/filepicker.php b/lib/form/filepicker.php index 9a71246243..90e2d6aec0 100644 --- a/lib/form/filepicker.php +++ b/lib/form/filepicker.php @@ -101,7 +101,7 @@ class MoodleQuickForm_filepicker extends HTML_QuickForm_input { $str .= $repojs; $str .= <<$straddfile +$straddfile $currentfile