summaryrefslogtreecommitdiffhomepage
path: root/themes/base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-13 23:07:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-13 23:07:54 +0000
commitd4053ad4925dbd932a584b34665a1c5bc7ab6ce1 (patch)
treeebff19db806ace0c6ad6fb4a0056be20d3fc7027 /themes/base/htdocs
parenta0d62ab9bf0770649ac06ebfaee87e50d249e9af (diff)
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
Diffstat (limited to 'themes/base/htdocs')
-rw-r--r--themes/base/htdocs/luci-static/resources/xhr.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js
index 096a04484..23bf96e02 100644
--- a/themes/base/htdocs/luci-static/resources/xhr.js
+++ b/themes/base/htdocs/luci-static/resources/xhr.js
@@ -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) == '&' )