mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Make the Administration menu item be show/hide-driven.
Always render the Administration menu item from the back end, but make it be hidden by default until the page is loaded. Then, the client can un-hide it as needed. (imported from commit 66e607eec430d7179b4d5ac3f5416f5be8ac26c9)
This commit is contained in:
@@ -966,6 +966,8 @@ $(function () {
|
||||
$('#old_password, #new_password, #confirm_password').val('');
|
||||
}
|
||||
|
||||
admin.show_or_hide_menu_item();
|
||||
|
||||
$('#gear-menu a[data-toggle="tab"]').on('show', function (e) {
|
||||
// Save the position of our old tab away, before we switch
|
||||
var old_tab = $(e.relatedTarget).attr('href');
|
||||
|
||||
Reference in New Issue
Block a user