Files
discourse/app/models
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
..
2015-08-19 16:57:26 +10:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-06-17 11:28:49 +10:00
2016-06-17 11:28:49 +10:00
2016-02-23 10:33:53 +11:00
2016-09-22 09:52:19 -04:00
2016-08-15 17:59:36 +10:00
2016-03-28 15:21:45 +11:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-03-28 15:21:45 +11:00
2016-06-17 11:28:49 +10:00
2016-05-02 23:15:32 +02:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-03-28 15:21:45 +11:00
2016-02-23 10:33:53 +11:00
2015-09-18 10:41:10 +10:00
2016-09-05 18:44:00 +08:00
2016-05-30 10:45:32 +10:00
2016-03-28 15:21:45 +11:00
2016-09-22 09:52:19 -04:00
2015-09-18 10:41:10 +10:00
2016-02-23 10:33:53 +11:00
2016-05-30 10:45:32 +10:00
2016-02-23 10:33:53 +11:00
2015-09-18 10:41:10 +10:00
2016-02-23 10:33:53 +11:00
2014-11-20 14:53:15 +11:00
2016-02-23 10:33:53 +11:00
2015-09-18 10:41:10 +10:00
2014-04-08 17:35:44 +02:00
2015-04-07 00:36:46 +04:30
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-06-17 11:28:49 +10:00
2016-06-17 11:28:49 +10:00
2014-04-08 17:35:44 +02:00
2016-05-30 10:45:32 +10:00
2016-05-30 10:45:32 +10:00
2016-05-30 10:45:32 +10:00
2015-09-14 10:48:24 +02:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-02-23 10:33:53 +11:00
2016-06-17 11:28:49 +10:00
2016-02-23 10:33:53 +11:00
2014-07-03 17:29:44 +10:00
2016-05-30 10:45:32 +10:00
2014-11-20 14:53:15 +11:00
2016-09-05 18:44:00 +08:00