| | |
| | | $('#logout').click(fm_logout); |
| | | $('#fusszeile-schliessen').on('click', fm_fusszeile_schliessen); |
| | | fm_get_login(); |
| | | |
| | | //console.log(window.location); |
| | | //console.log(window.location.search); |
| | | var parsedUrl = new URL(window.location.href); |
| | | //console.log(parsedUrl.searchParams.get("pfad")); |
| | | var wunschPfad = parsedUrl.searchParams.get("pfad"); |
| | | |
| | | if(wunschPfad !== null) { |
| | | if(wunschPfad.length > 0) { |
| | | pfad = wunschPfad; |
| | | fm_get_list(wunschPfad); |
| | | fm_init_uploader(); |
| | | } else { |
| | | fm_get_list(''); |
| | | fm_init_uploader(); |
| | | } |
| | | if(wunschPfad !== null && wunschPfad.length > 0) { |
| | | pfad = wunschPfad; |
| | | fm_get_list(wunschPfad); |
| | | fm_init_uploader(); |
| | | } else { |
| | | 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); |
| | | */ |
| | | loc = window.location.protocol + '//' + window.location.host; |
| | | } |
| | | |