Fix op filtering only.

This commit is contained in:
Nicolas Stepien 2012-02-21 02:22:08 +01:00
parent 1b8da8fd5f
commit f6f1f2293c
2 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@
},
createFilter: function(regexp, op, hl) {
return function(root, value, isOP) {
if (isOP && op === 'no' || op === 'only') return false;
if (isOP && op === 'no' || !isOP && op === 'only') return false;
if (!regexp.test(value)) return false;
if (hl) {
$.addClass(root, 'filter_highlight');

View File

@ -454,7 +454,7 @@ filter =
createFilter: (regexp, op, hl) ->
(root, value, isOP) ->
if isOP and op is 'no' or op is 'only'
if isOP and op is 'no' or !isOP and op is 'only'
return false
unless regexp.test value
return false