zulip/static
Sahil Batra 6ad8e276de settings: Refactor code for realm message retention setting.
This commit refactors the code for realm message retention
setting to make it more similar to code for other time-limit
realm settings. There are still separate functions for the
message retention setting but they are similar to that of
other time-limit settings and can probably help us to
deduplicate the code in future. This refactor also helps
us in reusing some code for stream message retention
setting for changes in #23013.

This commit also fixes a bug where save-discard widget
not being hidden when resetting the setting to original
value. This can only be reproduced when the original
setting value is "retain_forever".

Following changes have been done in this commit -

- Added data-setting-widget-type attribute which is set to
"message-retention-setting" similar to "time-limit" value for
message edit and delete limit settings.

- Added get_message_retention_setting_value function similar
to get_time_limit_setting_value function which is used by
get_input_element_value.

- Removed "message-retention" block from
get_complete_data_for_subsection and the message retention
setting is now added to request data in populate_data_for_request
itself using data-setting-widget-type attribute.

- Updated id and class of elements to support the above changes.
2022-11-10 16:13:49 -08:00
..
assets assets: Remove license for previously deleted emoji images. 2022-06-10 12:27:48 -07: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 help center: Clean up "Deactivate or reactivate a user" help page. 2022-11-10 12:00:25 -08:00
js settings: Refactor code for realm message retention setting. 2022-11-10 16:13:49 -08:00
shared shared: Bump version to 0.0.16 2022-11-02 13:59:05 -07:00
styles recent_topics: Show user status emoji in PMs messages. 2022-11-10 12:32:08 -08:00
templates settings: Refactor code for realm message retention setting. 2022-11-10 16:13:49 -08:00
third css: Remove Bootstrap legend CSS. 2022-08-13 17:36:08 -07:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00