summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-material/luasrc/view
diff options
context:
space:
mode:
authorLutty Yang <lutty@wcan.in>2015-10-23 20:51:12 +0800
committerLutty Yang <lutty@wcan.in>2015-10-23 20:51:12 +0800
commit8296a47c1ad8ed4ca5b6bc1032593c607242e913 (patch)
treecd2510257775d5089b2babdb5d361da2628459ed /themes/luci-theme-material/luasrc/view
parent9098b20650a77e8b0d0913d7786196e7a2a7508f (diff)
luci-theme-material: try find current position by using lua code
thanks for jow Signed-off-by: Lutty Yang <lutty@wcan.in>
Diffstat (limited to 'themes/luci-theme-material/luasrc/view')
-rwxr-xr-xthemes/luci-theme-material/luasrc/view/themes/material/footer.htm4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/footer.htm b/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
index 5cb74ce1e4..edf85dcdb0 100755
--- a/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
+++ b/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
@@ -41,6 +41,10 @@
</div>
</div>
+ <script>
+ // thanks for Jo-Philipp Wich <jow@openwrt.org>
+ var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>;
+ </script>
<script src="<%=media%>/js/jquery.min.js"></script>
<script src="<%=media%>/js/script.js"></script>
</body>