"MDL-13766, fixed a problem of icon view"
authorDongsheng Cai <unoter@gmail.com>
Fri, 14 May 2010 03:29:09 +0000 (03:29 +0000)
committerDongsheng Cai <unoter@gmail.com>
Fri, 14 May 2010 03:29:09 +0000 (03:29 +0000)
repository/filepicker.js

index 8873f23..b2b1f37 100644 (file)
@@ -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;