luci-theme-material: Decrease font and spacing
[project/luci.git] / themes / luci-theme-material / htdocs / luci-static / material / js / script.js
index 03e5739..583d66d 100755 (executable)
@@ -95,6 +95,7 @@
                 ul.removeClass("active");
             });
         }
+        return false;
     });
 
     /**
         $(this).addClass("active");
         $(".main > .loading").fadeIn("fast");
         window.location = $($(this).find("a")[0]).attr("href");
-        return;
+        return false;
     });
 
     /**
         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();