aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2014-12-12 11:43:31 +0100
committerRobin Appelman <robin@icewind.nl>2014-12-12 11:43:31 +0100
commit3bf0922b1337115c7cfc8a03547bc2d7d0d9fa69 (patch)
tree5c594dff36a1210b12dbb05558f50310819a5325 /apps/files/js
parentc451d99daae86290281806d0e8cdcfcfcf451412 (diff)
parentbf887eca8bac04cbbd2f1bd5197017c0e0583edd (diff)
downloadnextcloud-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.js6
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);
},
/**