cpradio 1e7c69044c FIX: Improve removing advanced filters
Prior:
Entering `test after:5` and then removing the 5 via the search text field would result in the UI not updating

After:
UI updates after half a second

Removing it from the UI, removes it from the search field immediately.

Change the regex to detect filter words. This now matches what happens in search.rb, which gives a lot more flexibility (such as iterating over multiple `in:` terms)

Return [] when searchTerm is empty

Move .trim() to this.set('searchTerm', searchTerm) so it doesn't run twice (which was very obvious when watching the search term field)

More refactoring to make this a bit less complex

Update code based on review comments

FEATURE: Add common `in:` options
2016-10-14 19:04:10 -04:00
..
2016-09-21 16:04:41 +08:00
2016-04-07 12:56:43 +10:00
2016-09-26 22:13:34 -07:00
2016-09-19 19:39:46 +02:00
2016-03-09 08:58:44 +01:00
2016-05-31 07:57:28 +10:00
2015-09-09 15:34:53 +02:00
2016-02-25 12:13:59 +10:00
2016-03-02 17:51:13 -05:00
2016-04-18 10:47:52 +08:00
2015-09-23 15:24:30 +10:00
2016-07-15 11:36:06 +08:00
2015-11-02 20:40:50 +01:00
2016-04-12 15:31:14 -04:00
2016-10-07 12:40:57 +11:00
2016-03-21 23:06:39 -03:00
2016-09-26 20:46:55 -03:00
2016-09-22 12:44:10 -04:00