From fa012bbbd2765fa54fb1420b3610052dc0cde129 Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Sun, 12 Mar 2017 10:20:26 +0000 Subject: [PATCH] Miniaturansicht Bilder --- web/ui/ui.js | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/web/ui/ui.js b/web/ui/ui.js index fbceedc..4d69657 100644 --- a/web/ui/ui.js +++ b/web/ui/ui.js @@ -28,6 +28,7 @@ var cutCopySrcDir; var cutCopyFiles; var cutCopyOperation; +var loc; function fm_init() { $("#mce-editor").hide(); @@ -61,6 +62,14 @@ 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); + */ + loc = window.location.protocol + '//' + window.location.host; } function fm_resize_editor() { @@ -895,7 +904,7 @@ ext = fny.substr(dotpos); } var path = fm_get_path(userid); - var imgurl = 'http://localhost:8079' + path + '/' + self.fnx + '_tn' + ext; + var imgurl = loc + path + '/' + self.fnx + '_tn' + ext; return imgurl; }; -- Gitblit v1.9.3