mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 06:58:31 +00:00
settings: Clarify variable names for tab template rendering.
This commit is contained in:
@@ -82,8 +82,8 @@ function _setup_page() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
options.bot_creation_policy_values = settings_bots.bot_creation_policy_values;
|
options.bot_creation_policy_values = settings_bots.bot_creation_policy_values;
|
||||||
var admin_tab = templates.render('admin_tab', options);
|
var rendered_admin_tab = templates.render('admin_tab', options);
|
||||||
$("#settings_content .organization-box").html(admin_tab);
|
$("#settings_content .organization-box").html(rendered_admin_tab);
|
||||||
$("#settings_content .alert").removeClass("show");
|
$("#settings_content .alert").removeClass("show");
|
||||||
|
|
||||||
settings_bots.update_bot_settings_tip();
|
settings_bots.update_bot_settings_tip();
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ function _setup_page() {
|
|||||||
|
|
||||||
setup_settings_label();
|
setup_settings_label();
|
||||||
|
|
||||||
var settings_tab = templates.render('settings_tab', {
|
var rendered_settings_tab = templates.render('settings_tab', {
|
||||||
full_name: people.my_full_name(),
|
full_name: people.my_full_name(),
|
||||||
page_params: page_params,
|
page_params: page_params,
|
||||||
zuliprc: 'zuliprc',
|
zuliprc: 'zuliprc',
|
||||||
@@ -136,7 +136,7 @@ function _setup_page() {
|
|||||||
settings_label: settings.settings_label,
|
settings_label: settings.settings_label,
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".settings-box").html(settings_tab);
|
$(".settings-box").html(rendered_settings_tab);
|
||||||
|
|
||||||
// Since we just swapped in a whole new settings widget, we need to
|
// Since we just swapped in a whole new settings widget, we need to
|
||||||
// tell settings_sections nothing is loaded.
|
// tell settings_sections nothing is loaded.
|
||||||
|
|||||||
Reference in New Issue
Block a user