aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib/files.js
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2024-06-11 22:31:40 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-07-04 15:37:55 +0200
commite9765e298b4972ae1066348bdb4b4299e081d026 (patch)
treea3315b8f9215c8057f809a54618f45a2404f6643 /resources/assets/javascripts/lib/files.js
parenta9c40e363b3e13223bb771105c190be9475021a5 (diff)
files wiptic-4299
Diffstat (limited to 'resources/assets/javascripts/lib/files.js')
-rw-r--r--resources/assets/javascripts/lib/files.js24
1 files changed, 1 insertions, 23 deletions
diff --git a/resources/assets/javascripts/lib/files.js b/resources/assets/javascripts/lib/files.js
index d05112d..5b0ab29 100644
--- a/resources/assets/javascripts/lib/files.js
+++ b/resources/assets/javascripts/lib/files.js
@@ -4,7 +4,7 @@ import FilesTable from '../../../vue/components/FilesTable.vue';
const Files = {
init () {
- if ($('#files-index, #files-system, #course-files-index, #institute-files-index, #files-flat, #course-files-flat, #institute-files-flat, #files-overview').length
+ if ($('#files-system, #course-files-index, #institute-files-index, #course-files-flat, #institute-files-flat, #files-overview').length
&& jQuery("#files_table_form").length) {
STUDIP.Vue.load().then(({createApp}) => {
@@ -46,28 +46,6 @@ const Files = {
});
});
}
-
- //The following is only for (read only) vue file tables where multiple
- //tables are displayed in one page.
- var tables = jQuery('.vue-file-table');
- if (tables.length) {
- for (let table of tables) {
- STUDIP.Vue.load().then(({createApp}) => {
- createApp({
- el: table,
- data() {
- return {
- files: jQuery(table).data("files") || [],
- folders: jQuery(table).data("folders") || [],
- topfolder: jQuery(table).data("topfolder"),
- breadcrumbs: jQuery(table).data("breadcrumbs") || []
- };
- },
- components: { FilesTable, },
- });
- });
- }
- }
},
openAddFilesWindow: function(folder_id) {