filter fix

This commit is contained in:
Galen Wolfe-Pauly 2015-08-20 16:45:57 -07:00
parent 6e36d70875
commit 0ba490847a
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ module.exports = recl
key = $t.attr('data-key')
if txt.length is 0 then txt = null
else switch key
when 'owner' then txt = "~#{txt}"
when 'audience' then txt = txt.split " "
when 'tags' then txt = [txt]
@props.onChange key,txt

View File

@ -123,6 +123,9 @@ module.exports = recl({
txt = null;
} else {
switch (key) {
case 'owner':
txt = "~" + txt;
break;
case 'audience':
txt = txt.split(" ");
break;