themes/base: fix error r7144, location.host already includes the port number and...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 13 Jun 2011 23:07:54 +0000 (23:07 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 13 Jun 2011 23:07:54 +0000 (23:07 +0000)
themes/base/htdocs/luci-static/resources/xhr.js

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