1
0

filesplugin.js 673 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2015
  3. *
  4. * This file is licensed under the Affero General Public License version 3
  5. * or later.
  6. *
  7. * See the COPYING-README file.
  8. *
  9. */
  10. (function() {
  11. OCA.Versions = OCA.Versions || {};
  12. /**
  13. * @namespace
  14. */
  15. OCA.Versions.Util = {
  16. /**
  17. * Initialize the versions plugin.
  18. *
  19. * @param {OCA.Files.FileList} fileList file list to be extended
  20. */
  21. attach: function(fileList) {
  22. if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
  23. return;
  24. }
  25. fileList.registerTabView(new OCA.Versions.VersionsTabView('versionsTabView', {order: -10}));
  26. }
  27. };
  28. })();
  29. OC.Plugins.register('OCA.Files.FileList', OCA.Versions.Util);