From c63f8be45965d0b1d20f34c0c907bff9f2c64fd1 Mon Sep 17 00:00:00 2001 From: Lutty Yang Date: Thu, 18 Feb 2016 20:29:19 +0800 Subject: luci-theme-material: Decrease font and spacing 1) Decrease font and spacing 2) Synchronized to the LUCI version 99f5d4e Signed-off-by: Lutty Yang --- .../htdocs/luci-static/material/js/script.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'themes/luci-theme-material/htdocs/luci-static/material/js/script.js') 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(); -- cgit v1.2.3