applications/luci-transmission: fix link to transmission gui if uhttpd runs on a non-standard port (#496)
This commit is contained in:
parent
06901331f5
commit
5a11da7d01
1 changed files with 1 additions and 1 deletions
|
@ -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 = " <input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.host+':" .. trport .. "')\"/>"
|
||||
button = " <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)
|
||||
|
|
Loading…
Reference in a new issue