mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Use modal.open_overlay() in settings/admin.
This commit is contained in:
@@ -40,6 +40,16 @@ exports.close_modal = function (name) {
|
||||
}
|
||||
};
|
||||
|
||||
exports.open_settings = function () {
|
||||
modals.open_overlay({
|
||||
name: 'settings',
|
||||
overlay: $("#settings_overlay_container"),
|
||||
on_close: function () {
|
||||
hashchange.exit_modal();
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
$(function () {
|
||||
$("body").on("click", ".overlay, .overlay .exit", function (e) {
|
||||
var $target = $(e.target);
|
||||
|
||||
Reference in New Issue
Block a user