Merge pull request #2583 from TDT-AG/pr/20180227-luci-theme-material

luci-theme-material: fix loading view on href
This commit is contained in:
Jo-Philipp Wich 2019-04-06 20:18:48 +02:00 committed by GitHub
commit 6c83231b19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
*/