| | |
| | | $('.code-editor-container').hide(); |
| | | $('.sued').hide(); |
| | | //$('.ost').attr('flex-basis', 0); |
| | | $('#newTab').on('click', fm_newTab); |
| | | $('#newTextFile').on('click', fm_menu_neue_textdatei); |
| | | $('#newDoc').on('click', fm_menu_neues_dokument); |
| | | $('#newFolder').on('click', fm_get_new_folder); |
| | |
| | | $('#logout').click(fm_logout); |
| | | $('#fusszeile-schliessen').on('click', fm_fusszeile_schliessen); |
| | | fm_get_login(); |
| | | fm_get_list(''); |
| | | fm_init_uploader(); |
| | | /* |
| | | console.log('href: ' + window.location.href); |
| | | console.log('host: ' + window.location.host); |
| | | console.log('hostname: ' + window.location.hostname); |
| | | console.log('port: ' + window.location.port); |
| | | console.log('protocol: ' + window.location.protocol); |
| | | */ |
| | | var parsedUrl = new URL(window.location.href); |
| | | var wunschPfad = parsedUrl.searchParams.get("pfad"); |
| | | |
| | | if(wunschPfad !== null && wunschPfad.length > 0) { |
| | | pfad = wunschPfad; |
| | | fm_get_list(wunschPfad); |
| | | fm_init_uploader(); |
| | | } else { |
| | | fm_get_list(''); |
| | | fm_init_uploader(); |
| | | } |
| | | loc = window.location.protocol + '//' + window.location.host; |
| | | } |
| | | |
| | | function fm_newTab() { |
| | | window.open('/file-cms/ui/?pfad=' + pfad, '_blank'); |
| | | } |
| | | |
| | | function fm_toggle_show_slideshow() { |
| | | if(fm_slideshow) { |
| | | $('#m-toggle-slideshow').text('Diashow einschalten'); |