Dateiverwaltung für die WebBox
ulrich
2017-03-12 fa012bbbd2765fa54fb1420b3610052dc0cde129
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;
    
  };