Fixed click on filtered files in Open Document panel

This commit is contained in:
benweet 2013-10-02 01:33:50 +01:00
parent d861987d9b
commit 7085c8b13a

View File

@ -99,7 +99,7 @@ define([
documentListFilteredElt.innerHTML = documentListFilteredHtml; documentListFilteredElt.innerHTML = documentListFilteredHtml;
// Add click listeners // Add click listeners
_.each(documentListElt.querySelectorAll('.file'), function(fileElt) { _.each(panelElt.querySelectorAll('.file'), function(fileElt) {
var $fileElt = $(fileElt); var $fileElt = $(fileElt);
$fileElt.click(function(e) { $fileElt.click(function(e) {
var fileDesc = fileSystem[$fileElt.data('fileIndex')]; var fileDesc = fileSystem[$fileElt.data('fileIndex')];