X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=themes%2Fluci-theme-material%2Fhtdocs%2Fluci-static%2Fmaterial%2Fjs%2Fscript.js;h=583d66d91f531c01686f41a3a467c0b3b15146fb;hb=c63f8be45965d0b1d20f34c0c907bff9f2c64fd1;hp=03e5739ad88081f46a40af4adff622860c9005fb;hpb=99f5d4e902d6905b0c02819495922043b1f07637;p=project%2Fluci.git 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 03e5739ad8..583d66d91f 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 @@ -95,6 +95,7 @@ ul.removeClass("active"); }); } + return false; }); /** @@ -115,7 +116,7 @@ $(this).addClass("active"); $(".main > .loading").fadeIn("fast"); window.location = $($(this).find("a")[0]).attr("href"); - return; + return false; }); /** @@ -198,6 +199,13 @@ that.after("" + that.text() + ""); }); + $(".cbi-section-table-titles, .cbi-section-table-descr, .cbi-section-descr").each(function () { + var that = $(this); + if (that.text().trim() == ""){ + that.css("display", "none"); + } + }); + $(".main-right").focus(); $(".main-right").blur();