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: use location.host, fallback to location.hostname in xhr.js, fixes AJAX...
[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 a146fa8a1862054f22ad6daf91b345794f36d9be..096a0448474159ee8501fda583df6b28cb20e824 100644
(file)
--- a/
themes/base/htdocs/luci-static/resources/xhr.js
+++ b/
themes/base/htdocs/luci-static/resources/xhr.js
@@
-43,7
+43,7
@@
XHR = function()
var xhr = this._xmlHttp;
var code = this._encode( data );
- url = location.protocol + '//' +
location.hostname
+
+ url = location.protocol + '//' +
(location.host || location.hostname)
+
( location.port ? ':' + location.port : '' ) + url;
if( code )