Permalink
Browse files

MDL-37831 filepicker - icons / details / tree selector buttons now wo…

…rk more reliably
  • Loading branch information...
1 parent d3a2b63 commit 80accd23bbc7bc39db80123350bf00b7515de0be @davosmith davosmith committed with damyon Feb 8, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 repository/filepicker.js
View
@@ -1320,8 +1320,10 @@ M.core_filepicker.init = function(Y, options) {
this.pathbar.removeChild(this.pathnode);
}
// assign callbacks for view mode switch buttons
- this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').
- on('click', this.viewbar_clicked, this);
+ this.fpnode.one('.fp-vb-icons').on('click', this.viewbar_clicked, this);
+ this.fpnode.one('.fp-vb-tree').on('click', this.viewbar_clicked, this);
+ this.fpnode.one('.fp-vb-details').on('click', this.viewbar_clicked, this);
+
// assign callbacks for toolbar links
this.setup_toolbar();
this.setup_select_file();

0 comments on commit 80accd2

Please sign in to comment.