discourse/plugins/poll
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
..
assets Split out common functions into `discourse-common` module 2016-09-22 09:52:19 -04:00
config FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
db/migrate FIX: close existing polls in closed topics to keep old behaviour 2016-03-21 23:09:36 +01:00
lib Extract polls edit window to a site settings. 2016-08-10 15:17:16 +08:00
spec Extract polls edit window to a site settings. 2016-08-10 15:17:16 +08:00
test/javascripts Fix incorrect test. 2016-07-29 17:05:00 +08:00
plugin.rb Opps this broke polls. 2016-07-29 14:28:09 +08:00