code review

This commit is contained in:
gorhill 2015-03-02 23:40:41 -05:00
parent 8b1ecfc09c
commit c15a943ec0
2 changed files with 4 additions and 7 deletions

View file

@ -34,7 +34,7 @@ body {
#toolbar .button:hover {
background-color: #eee;
}
#toolbar #filterButton.off {
body.filterOff #toolbar #filterButton {
opacity: 0.25;
}
#content {
@ -58,7 +58,7 @@ body {
#content table tr.maindoc {
background-color: #eee;
}
#content table tr.hidden {
body:not(.filterOff) #content table tr.hidden {
display: none;
}
#content table tr td {

View file

@ -245,16 +245,13 @@ var unapplyFilter = function() {
/******************************************************************************/
var onFilterButton = function() {
uDom('#filterButton').toggleClass('off');
onFilterChanged();
uDom('body').toggleClass('filterOff');
};
/******************************************************************************/
var onFilterChanged = function() {
var filterRaw = uDom('#filterButton').hasClass('off') ?
'' :
uDom('#filterExpression').val().trim();
var filterRaw = uDom('#filterExpression').val().trim();
if ( filterRaw === '') {
reFilter = null;