luci-theme-material: try find current position by using lua code
[project/luci.git] / themes / luci-theme-material / luasrc / view / themes / material / footer.htm
index 5cb74ce..edf85dc 100755 (executable)
             </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>