themes/base: fix error r7144, location.host already includes the port number and is widely supported, remove the location.hostname fallback and port number handling

This commit is contained in:
Jo-Philipp Wich 2011-06-13 23:07:54 +00:00
parent a0d62ab9bf
commit d4053ad492

View file

@ -43,8 +43,7 @@ XHR = function()
var xhr = this._xmlHttp; var xhr = this._xmlHttp;
var code = this._encode( data ); var code = this._encode( data );
url = location.protocol + '//' + (location.host || location.hostname) + url = location.protocol + '//' + location.host + url;
( location.port ? ':' + location.port : '' ) + url;
if( code ) if( code )
if( url.substr(url.length-1,1) == '&' ) if( url.substr(url.length-1,1) == '&' )