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>
This commit is contained in:
parent
e4bbc5970f
commit
e77430d8bb
1 changed files with 0 additions and 18 deletions
|
@ -131,24 +131,6 @@
|
||||||
$(".cbi-button-up").val("");
|
$(".cbi-button-up").val("");
|
||||||
$(".cbi-button-down").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
|
* Sidebar expand
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue