This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
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
..
adapters FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
components FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
controllers PERF: Don't render advanced search options when not expanded. 2016-10-13 14:46:13 +08:00
helpers FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
initializers FEATURE: increase interval to 24 hours for "please refresh site" 2016-09-19 10:12:27 +10:00
lib FIX: All clicks should close autocomplete. 2016-10-13 13:28:24 +08:00
mixins FIX: Archetype class wasn't being applied on refresh 2016-08-02 15:26:07 -04:00
models FIX: back button behaviour should be consistent when visiting watched/muted topics from user preferences page 2016-10-13 02:16:21 +05:30
pre-initializers Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
routes FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
services FIX: Logs notice was not displaying the right Date. 2016-08-02 12:40:28 +08:00
templates FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
views remove old search help in favor of advanced search 2016-10-11 14:01:16 -07:00
widgets FIX: Don't mix camelCase into query params. 2016-10-13 14:43:47 +08:00
mapping-router.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00