zulip/static
jai2201 5e49ddf4e1 settings: Add sorting feature for list of alert words.
This changes the method of rendering list of alert words in DOM,
earlier it was rendered using 'for' loop over the array of alert_words
which is now changed to render using ListWidget, which gets a array
of objects from get_word_list() in alert_words.js.

The use of ListWidget helps to define a parent_container and $container
in table-body of alert-words-table using which we can now apply sorting over
alert words with the help of handle_sort() function in list_widget.js

Changed the method of adding alert_word_settings_item row in table body
through {{#with}} loop because of rendering through ListWidget, which was done
earlier using for loop over each alert-word in while rendering the list.

this commit also mocks template of render_alert_word_item
while mocking ListWidget.create() function in render_alert_words_ui().
and checks that ListWidget.create() is not called when variable `loaded`
is set as false.

Fixes #21142.
2022-02-25 17:33:11 -08:00
..
assets icons: Set font-display: block for icon font. 2021-08-23 15:59:54 -07:00
audio
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images portico: Add a self-hosting page. 2022-02-17 12:43:13 -08:00
js settings: Add sorting feature for list of alert words. 2022-02-25 17:33:11 -08:00
shared js: Avoid _.get. 2022-01-24 15:54:21 -08:00
styles settings: Add sorting feature for list of alert words. 2022-02-25 17:33:11 -08:00
templates settings: Add sorting feature for list of alert words. 2022-02-25 17:33:11 -08:00
third typeahead: Ignore mouse position for selection until it's moved. 2022-02-15 17:26:22 -08:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00