file_manager.js 814 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: 2012-2023 MOD Audio UG
  2. // SPDX-License-Identifier: AGPL-3.0-or-later
  3. JqueryClass('fileManagerBox', {
  4. init: function (options) {
  5. var self = $(this)
  6. options = $.extend({
  7. isMainWindow: true,
  8. windowName: "File Manager",
  9. }, options)
  10. self.data(options)
  11. options.open = function () {
  12. console.log("FileManager open")
  13. if (! self.data('loaded')) {
  14. var url = window.location.protocol + '//' + window.location.hostname + ':8081/'
  15. self.find('iframe').attr('src', url)
  16. self.data('loaded', true)
  17. }
  18. return false
  19. }
  20. self.window(options)
  21. },
  22. setCategory: function (category) {
  23. var self = $(this)
  24. },
  25. })