settings: Extract admin.build_page().

This commit is contained in:
Steve Howell
2018-12-06 18:56:28 +00:00
committed by Tim Abbott
parent b9aecabdb7
commit 3acc6fe080

View File

@@ -17,7 +17,7 @@ var admin_settings_label = {
realm_email_changes_disabled : i18n.t("Prevent users from changing their email address"), realm_email_changes_disabled : i18n.t("Prevent users from changing their email address"),
}; };
exports.setup_page = function () { exports.build_page = function () {
var options = { var options = {
custom_profile_field_types: page_params.custom_profile_field_types, custom_profile_field_types: page_params.custom_profile_field_types,
realm_name: page_params.realm_name, realm_name: page_params.realm_name,
@@ -73,6 +73,10 @@ exports.setup_page = function () {
// Since we just swapped in a whole new page, we need to // Since we just swapped in a whole new page, we need to
// tell admin_sections nothing is loaded. // tell admin_sections nothing is loaded.
admin_sections.reset_sections(); admin_sections.reset_sections();
};
exports.setup_page = function () {
exports.build_page();
var tab = (function () { var tab = (function () {
var tab = false; var tab = false;