zulip/static/js
Steve Howell 95102dc1bd Refactor search_suggestions.js.
1. Change code comment in search.get_suggestion.

2. Remove side effects from search.get_suggestions.

The function get_suggestions() was updating a module-scoped variable
called search_object, but now it returns a dictionary to its caller.

3. Greatly reduce the scope of the search_object var in search.js.

I also clarified the comment around it a bit. We could squeeze
the scope of search_object even further by using a function wrapper, but
this is a big enough win for now.

(imported from commit 4b633dd30ab45d24b85ea1d10df27df5aaa0c959)
2013-08-02 17:28:03 -04:00
..
activity.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
api.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
avatar.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
blueslip.js Replace $.extend 2013-07-30 12:12:59 -04:00
colorspace.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
common.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
compose.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
composebox_typeahead.js Don't autocomplete @-mentions mid-word 2013-08-01 18:42:39 -04:00
debug.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
emoji.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
feature_flags.js Enable always-open-compose for MIT, CUSTOMER4, Zulip. 2013-08-01 13:00:15 -04:00
hashchange.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
hotkey.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
initial_invite.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
invite.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
landing-page.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
message_edit.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
message_list.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
message_tour.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
metrics.js Rename our custom JS events to use Zulip, not Zephyr. 2013-07-29 12:11:26 -04:00
narrow.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
navigate.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
notifications.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
notifications_bar.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
onboarding.js Make the "Get our app" onboarding popover less obnoxious. 2013-08-02 10:24:28 -04:00
popovers.js Fix disappearing stream sidebar chevron (#1587) 2013-07-29 19:23:09 -04:00
reload.js Fix tracebacks on reload while composing 2013-07-30 13:10:50 -04:00
rows.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
search.js Refactor search_suggestions.js. 2013-08-02 17:28:03 -04:00
settings.js Use PATCH again for patching bots. 2013-08-02 11:46:11 -04:00
setup.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
signup.js Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
stream_list.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
subs.js Refactor code to show/hide "All messages" link 2013-08-01 10:16:32 -04:00
tab_bar.js Add support for narrowing to a single message ID. 2013-07-31 14:59:05 -04:00
templates.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
timerender.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
tutorial.js Replace $.each with _.each 2013-07-30 12:12:58 -04:00
typeahead_helper.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
ui.js Remove extra space in presence descriptions 2013-08-02 16:26:46 -04:00
unread.js Add unit test coverage to unread.js. 2013-07-29 13:47:57 -04:00
util.js Add curly braces for all javascript if statements lacking them. 2013-08-01 11:47:54 -04:00
viewport.js Change mark-as-read behavior. 2013-08-01 11:26:55 -04:00
zephyr.js Move feature_flags into its own file. 2013-08-01 13:00:15 -04:00