projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
themes/base: fix error r7144, location.host already includes the port number and...
[project/luci.git]
/
themes
/
base
/
htdocs
/
luci-static
/
resources
/
xhr.js
diff --git
a/themes/base/htdocs/luci-static/resources/xhr.js
b/themes/base/htdocs/luci-static/resources/xhr.js
index
a146fa8
..
23bf96e
100644
(file)
--- 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 );
var xhr = this._xmlHttp;
var code = this._encode( data );
- url = location.protocol + '//' + location.hostname +
- ( location.port ? ':' + location.port : '' ) + url;
+ url = location.protocol + '//' + location.host + url;
if( code )
if( url.substr(url.length-1,1) == '&' )
if( code )
if( url.substr(url.length-1,1) == '&' )