diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-05 13:11:50 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-05 13:11:50 +0100 |
commit | 23900a5a39c45cff90e0056d3d58736ea11553c4 (patch) | |
tree | c441a0ef50cb2eee0065db9f808718768055341c /apps/files/js/filelist.js | |
parent | 73e17dc7e8f06d9855b9a1c99133fd7f1c6a1a67 (diff) | |
download | nextcloud-server-23900a5a39c45cff90e0056d3d58736ea11553c4.tar.gz nextcloud-server-23900a5a39c45cff90e0056d3d58736ea11553c4.zip |
filter trashbin and share views
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 84b537fbdfe..768fc77df24 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -214,6 +214,8 @@ this.$el.on('show', this._onResize); + this.updateSearch(); + this.$fileList.on('click','td.filename>a.name', _.bind(this._onClickFile, this)); this.$fileList.on('change', 'td.filename>.selectCheckBox', _.bind(this._onClickFileCheckbox, this)); this.$el.on('urlChanged', _.bind(this._onUrlChanged, this)); @@ -274,6 +276,8 @@ containerWidth -= $('#app-navigation-toggle').width(); this.breadcrumb.setMaxWidth(containerWidth - actionsWidth - 10); + + this.updateSearch(); }, /** @@ -1703,6 +1707,14 @@ return this._filter; }, /** + * update the search object to use this filelist when filtering + */ + updateSearch:function() { + if (OCA.Search.files) { + OCA.Search.files.setFileList(this); + } + }, + /** * Update UI based on the current selection */ updateSelectionSummary: function() { |