You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filesplugin.js 668B

123456789101112131415161718192021222324252627282930313233
  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)