﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1102	hostname - url of inserted resource	Parahat Melayev		"When I add media or file from file browser, FCKEeditor adds full path but this won't work if you send e-mails created with FCKeditor as client will try to call path from its own host.

So I made some improvements at frmresourceslist.html on oListManager.AddFile as below

oListManager.AddFile = function( fileName, fileUrl, fileSize )
{
	// Create the new row.
	var oRow = this.Table.insertRow(-1) ;

	//Burayı ben ekledim (parahat)
	var sHostname = window.location.hostname;
	if(window.location.port.length > 0)
		sHostname += "":"" + window.location.port;

	// Build the link to view the folder.
	
	var sLink = '<a href=""#"" onclick=""OpenFile(\'http://' + sHostname + fileUrl + '\');return false;"">' ;

	// Get the file icon.
	var sIcon = oIcons.GetIcon( fileName ) ;

	// Add the file icon cell.
	var oCell = oRow.insertCell(-1) ;
	oCell.width = 16 ;
	oCell.innerHTML = sLink + '<img alt="""" src=""images/icons/' + sIcon + '.gif"" width=""16"" height=""16"" border=""0""></a>' ;

	// Add the file name cell.
	oCell = oRow.insertCell(-1) ;
	oCell.innerHTML = '&nbsp;' + sLink + fileName + '</a>' ;
	
	// Add the file size cell.
	oCell = oRow.insertCell(-1) ;
	oCell.noWrap = true ;
	oCell.align = 'right' ;
	oCell.innerHTML = '&nbsp;' + fileSize + ' KB' ;
}"	Bug	closed	Normal		General		invalid		
