discourse/test/javascripts
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
..
acceptance FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
admin REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
components FIX: Format selection as multiline code only when selection spans multiple lines. 2016-08-23 15:00:16 +08:00
controllers Refactor topic-progress into a component 2016-05-31 10:51:39 -04:00
ember Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
fixtures FEATURE: new 'categories_and_latest' endpoint 2016-08-29 22:47:44 +02:00
helpers Add Acceptance Tests (which found an error) 2016-10-08 09:09:37 -04:00
lib FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
mdtest FIX: We don't sanitize h ids anymore 2016-07-19 17:39:34 -04:00
mixins createWithMixins is deprecated. 2016-04-29 16:50:52 -04:00
models UX: new /categories layout 2016-08-17 23:23:16 +02:00
views Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
widgets fix js test 2016-09-16 15:33:51 -04:00
plugin_tests.js.erb Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
test_helper.js Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00