diff options
author | Robin Appelman <robin@icewind.nl> | 2014-12-12 11:43:31 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2014-12-12 11:43:31 +0100 |
commit | 3bf0922b1337115c7cfc8a03547bc2d7d0d9fa69 (patch) | |
tree | 5c594dff36a1210b12dbb05558f50310819a5325 /apps/files/js | |
parent | c451d99daae86290281806d0e8cdcfcfcf451412 (diff) | |
parent | bf887eca8bac04cbbd2f1bd5197017c0e0583edd (diff) | |
download | nextcloud-server-3bf0922b1337115c7cfc8a03547bc2d7d0d9fa69.tar.gz nextcloud-server-3bf0922b1337115c7cfc8a03547bc2d7d0d9fa69.zip |
Merge pull request #12527 from owncloud/js-pluginsystem
Simple Plugin system for Javascript
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 6ffc10cdcbd..7abbf2c80b2 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -166,6 +166,9 @@ } this.$el = $el; + if (options.id) { + this.id = options.id; + } this.$container = options.scrollContainer || $(window); this.$table = $el.find('table:first'); this.$fileList = $el.find('#fileList'); @@ -215,6 +218,8 @@ self.scrollTo(options.scrollTo); }); } + + OC.Plugins.attach('OCA.Files.FileList', this); }, /** @@ -224,6 +229,7 @@ // TODO: also unregister other event handlers this.fileActions.off('registerAction', this._onFileActionsUpdated); this.fileActions.off('setDefault', this._onFileActionsUpdated); + OC.Plugins.detach('OCA.Files.FileList', this); }, /** |