Merge pull request #2583 from TDT-AG/pr/20180227-luci-theme-material
authorJo-Philipp Wich <jo@mein.io>
Sat, 6 Apr 2019 18:18:48 +0000 (20:18 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Apr 2019 18:18:48 +0000 (20:18 +0200)
luci-theme-material: fix loading view on href

themes/luci-theme-material/htdocs/luci-static/material/js/script.js

index 3c25ed712def04aa6d0fc03d7c3049f4bc53247c..db9c99e118d26acaa0105d991fc327da3ed7a7cc 100755 (executable)
     $(".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
      */