discourse/docs
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
..
ADMIN-QUICK-START-GUIDE.md simplify quick start guide to reflect setup wizard 2016-09-22 19:06:54 -07:00
AUTHORS.md Update the members of the Core Discourse Team 2014-03-04 16:48:06 +01:00
DEVELOPER-ADVANCED.md Update DEVELOPER-ADVANCED.md 2016-06-20 22:34:39 +01:00
DEVELOPMENT-OSX-NATIVE.md Update DEVELOPMENT-OSX-NATIVE.md 2016-04-07 06:05:10 -06:00
INSTALL-cloud.md FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
INSTALL-digital-ocean.md move "digital ocean" to "cloud" install 2015-03-30 15:20:56 -07:00
INSTALL-email.md Update INSTALL-email.md 2016-04-30 01:32:45 -07:00
INSTALL.md Bump PostgreSQL version in `INSTALL.md`. 2016-08-25 15:41:51 +08:00
PLUGINS.md FIX: plugin links. 2016-03-16 11:42:39 -07:00
SECURITY.md add ddos section, install guide references 2014-05-09 16:36:39 -07:00
TESTING.md Robin lurves him some MailCatcher 2013-06-07 16:54:09 -06:00
TROUBLESHOOTING-prod.md Bump recommended minimum PostgreSQL version to 9.3 2015-05-23 12:47:06 +01:00
TROUBLESHOOTING.md Bump recommended minimum PostgreSQL version to 9.3 2015-05-23 12:47:06 +01:00
VAGRANT.md Rubygems upgrade needed for mailcatcher 2016-09-09 22:29:20 +05:00
WELCOME-TO-DISCOURSE.md add animated edit gif to welcome message 2015-07-17 01:20:32 -07:00
code-of-conduct.md Fixed email 2016-08-23 20:35:07 +02:00
vagrant.screen Update vagrant.screen to make use of work by @tarek 2016-06-05 15:34:52 -04:00