From: Dongsheng Cai Date: Fri, 14 May 2010 03:29:09 +0000 (+0000) Subject: "MDL-13766, fixed a problem of icon view" X-Git-Tag: v2.0.0-rc1~3464 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=2e93bc3819c36204d4fbfe3f71c81e4e6e44b098 "MDL-13766, fixed a problem of icon view" --- diff --git a/repository/filepicker.js b/repository/filepicker.js index 8873f2316e1..b2b1f378c4a 100644 --- a/repository/filepicker.js +++ b/repository/filepicker.js @@ -330,9 +330,10 @@ M.core_filepicker.init = function(Y, options) { this.view_files(); } }, this, node); - y_title.on('click', function(e, p){ - y_file.simulate('click'); - }, this, node); + y_title.on('click', function(e, p, id){ + var icon = Y.one(id); + icon.simulate('click'); + }, this, node, '#'+link.id); } else { var fileinfo = {}; fileinfo['title'] = list[k].title;