From: dongsheng Date: Fri, 27 Feb 2009 06:38:06 +0000 (+0000) Subject: "REPOSITORY/MDL-13766, repaint filepicker when hide/show it" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7d2ebf7090a015339fcef9be5935f6b380207682;p=moodle.git "REPOSITORY/MDL-13766, repaint filepicker when hide/show it" --- diff --git a/repository/javascript.php b/repository/javascript.php index 3d40351c25..f84002f92e 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -254,6 +254,8 @@ var filepicker = new YAHOO.widget.Panel('file-picker-$suffix', { // public method this.show = function() { filepicker.update_instances(); + var panel = new YAHOO.util.Element('panel-$suffix'); + panel.get('element').innerHTML = ''; filepicker.show(); } this.hide = function() {