summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-01-11 10:01:37 +0100
committerFlorian Eckert <fe@dev.tdt.de>2019-02-27 14:03:56 +0100
commite77430d8bb520b7ea588ee9902d59cf963f4db6f (patch)
tree992c09870f07b00c1089c64d4f1ffa60bf4d89cb /themes
parente4bbc5970f6a305d14c180792ce8736b9b7e56b8 (diff)
luci-theme-material: fix loading view on href
After opening an external hyperlink in a new browser tab, LuCI hangs in the load screen. This commit will fix this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/luci-theme-material/htdocs/luci-static/material/js/script.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
index 3c25ed712..db9c99e11 100755
--- a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
+++ b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
@@ -131,24 +131,6 @@
$(".cbi-button-up").val("");
$(".cbi-button-down").val("");
-
- /**
- * hook other "A Label" and add hash to it.
- */
- $("#maincontent > .container").find("a").each(function () {
- var that = $(this);
- var onclick = that.attr("onclick");
- if (onclick == undefined || onclick == "") {
- that.click(function () {
- var href = that.attr("href");
- if (href.indexOf("#") == -1) {
- $(".main > .loading").fadeIn("fast");
- return true;
- }
- });
- }
- });
-
/**
* Sidebar expand
*/