From 7a0c240306f535dcc9af7bc406d3eab9073aced8 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Sun, 16 Aug 2009 03:46:15 +0000 Subject: [PATCH] "MDL-16697, fixed parameters" --- lib/form/filepicker.js | 4 +++- lib/form/filepicker.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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