summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-transmission/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-10-29 13:09:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-10-29 13:09:31 +0000
commit431d4e8eff513622eaa1b6e3f0803913c0abb975 (patch)
tree57fab0a350fd1aa29e4fe283163166fbb7e30c91 /applications/luci-transmission/luasrc/model
parent94784db12b33d53c6da1b2a9195d40319766361c (diff)
merge branch changes into trunk
Diffstat (limited to 'applications/luci-transmission/luasrc/model')
-rw-r--r--applications/luci-transmission/luasrc/model/cbi/transmission.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-transmission/luasrc/model/cbi/transmission.lua b/applications/luci-transmission/luasrc/model/cbi/transmission.lua
index e727a0de38..4f9e3c5476 100644
--- a/applications/luci-transmission/luasrc/model/cbi/transmission.lua
+++ b/applications/luci-transmission/luasrc/model/cbi/transmission.lua
@@ -22,7 +22,7 @@ local running = (luci.sys.call("pidof transmission-daemon > /dev/null") == 0)
local webinstalled = luci.model.ipkg.installed("transmission-web")
local button = ""
if running and webinstalled then
- button = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.host+':" .. trport .. "')\"/>"
+ button = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.hostname+':" .. trport .. "')\"/>"
end
m = Map("transmission", "Transmission", translate("Transmission daemon is a simple bittorrent client, here you can configure the settings.") .. button)