mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Massively refactor settings page templates and styling.
This restructures the styling for the Zulip settings and administration pages to minimize use of Bootstrap and use a consistent styling library for similar elements. While it is basically a wash in terms of the page's visuals, it will make our life a lot easier for future work on improving the settings pages section of the site.
This commit is contained in:
committed by
Tim Abbott
parent
68c51912c9
commit
706f422c3a
@@ -349,20 +349,20 @@ function _setup_page() {
|
||||
$("#id_realm_invite_required").change(function () {
|
||||
if (this.checked) {
|
||||
$("#id_realm_invite_by_admins_only").removeAttr("disabled");
|
||||
$("#id_realm_invite_by_admins_only_label").removeClass("control-label-disabled");
|
||||
$("#id_realm_invite_by_admins_only_label").parent().removeClass("control-label-disabled");
|
||||
} else {
|
||||
$("#id_realm_invite_by_admins_only").attr("disabled", true);
|
||||
$("#id_realm_invite_by_admins_only_label").addClass("control-label-disabled");
|
||||
$("#id_realm_invite_by_admins_only_label").parent().addClass("control-label-disabled");
|
||||
}
|
||||
});
|
||||
|
||||
$("#id_realm_allow_message_editing").change(function () {
|
||||
if (this.checked) {
|
||||
$("#id_realm_message_content_edit_limit_minutes").removeAttr("disabled");
|
||||
$("#id_realm_message_content_edit_limit_minutes_label").removeClass("control-label-disabled");
|
||||
$("#id_realm_message_content_edit_limit_minutes_label").parent().removeClass("control-label-disabled");
|
||||
} else {
|
||||
$("#id_realm_message_content_edit_limit_minutes").attr("disabled", true);
|
||||
$("#id_realm_message_content_edit_limit_minutes_label").addClass("control-label-disabled");
|
||||
$("#id_realm_message_content_edit_limit_minutes_label").parent().addClass("control-label-disabled");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user