zulip/static
Sahil Batra 677b26025a settings_org: Refactor code for dropdown list widget settings.
This commit refactors the code for dropdown list widget settings
such that we can reuse the added functions for further settings
that will use dropdown_list_widget.

This change will be helpful when we will add group-based settings
and change some of the existing role-based settings to be group-based.

We add a new function "get_widget_for_dropdown_list_settings" to
get the widget variable from setting name. The functions to get
and set the setting value use "get_widget_for_dropdown_list_settings"
function to get the widget and then gets or sets the setting value
accordingly.

We also add "data-setting-widget-type" and "data-setting-value-type"
attributes to the element like other settings.

The "data-setting-widget-type" attr is used by get_input_element_value
to use "get_dropdown_list_widget_setting_value" function for
dropdown-list-widget settings.

The "data-setting-value-type" attribute is used to parse the setting
value to correct types in "get_dropdown_list_widget_setting_value"
function.
2023-01-04 17:51:42 -08:00
..
assets compose: Create shared compose banner and use for resolved topic warning. 2022-12-06 15:42:07 -08:00
audio/notification_sounds audio: Remove the copy of zulip.ogg outside notification_sounds. 2022-06-10 12:27:48 -07:00
generated
html templates: Add HTML title element to templates that extend base/portico. 2022-09-19 20:17:17 -07:00
images ci: Check that non-scripts aren’t marked executable. 2022-12-07 09:54:01 -08:00
js settings_org: Refactor code for dropdown list widget settings. 2023-01-04 17:51:42 -08:00
shared shared: Bump version to 0.0.16 2022-11-02 13:59:05 -07:00
styles billing: Use same font-family for inputs as for rest of the page. 2023-01-02 08:28:34 -08:00
templates settings_org: Refactor code for dropdown list widget settings. 2023-01-04 17:51:42 -08:00
third bootstrap: Remove print media styles. 2022-12-16 00:01:25 -08:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00