| | |
| | | var cutCopySrcDir; |
| | | var cutCopyFiles; |
| | | var cutCopyOperation; |
| | | var loc; |
| | | |
| | | function fm_init() { |
| | | $("#mce-editor").hide(); |
| | |
| | | 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() { |
| | |
| | | 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; |
| | | |
| | | }; |