From 039677df7092b0e2642c645a2c13e207601975f7 Mon Sep 17 00:00:00 2001 From: Davo Smith Date: Fri, 8 Feb 2013 20:37:19 +0000 Subject: [PATCH] MDL-37831 filepicker - icons / details / tree selector buttons now work more reliably --- repository/filepicker.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repository/filepicker.js b/repository/filepicker.js index 18a23bcbe60..3cb03741454 100644 --- a/repository/filepicker.js +++ b/repository/filepicker.js @@ -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();