projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5221623
)
themes/base: use location.host, fallback to location.hostname in xhr.js, fixes AJAX...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 13 Jun 2011 21:57:58 +0000
(21:57 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 13 Jun 2011 21:57:58 +0000
(21:57 +0000)
themes/base/htdocs/luci-static/resources/xhr.js
patch
|
blob
|
history
diff --git
a/themes/base/htdocs/luci-static/resources/xhr.js
b/themes/base/htdocs/luci-static/resources/xhr.js
index
a146fa8
..
096a044
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 )