diff options
author | Lutty Yang <lutty@wcan.in> | 2016-02-18 20:29:19 +0800 |
---|---|---|
committer | Lutty Yang <lutty@wcan.in> | 2016-02-18 20:29:19 +0800 |
commit | c63f8be45965d0b1d20f34c0c907bff9f2c64fd1 (patch) | |
tree | f5e66a57c0f6a3db232b710cccfd70b34e826169 /themes/luci-theme-material/htdocs/luci-static/material/js | |
parent | 99f5d4e902d6905b0c02819495922043b1f07637 (diff) |
luci-theme-material: Decrease font and spacing
1) Decrease font and spacing
2) Synchronized to the LUCI version 99f5d4e
Signed-off-by: Lutty Yang <lutty@wcan.in>
Diffstat (limited to 'themes/luci-theme-material/htdocs/luci-static/material/js')
-rwxr-xr-x | themes/luci-theme-material/htdocs/luci-static/material/js/script.js | 10 |
1 files changed, 9 insertions, 1 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 03e5739ad..583d66d91 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("<span class='panel-title'>" + that.text() + "</span>"); }); + $(".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(); |