mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Use modal.open_overlay() in invite.js.
This commit is contained in:
@@ -120,7 +120,13 @@ exports.initialize = function () {
|
||||
},
|
||||
});
|
||||
|
||||
$("#invite-user").addClass("show");
|
||||
modals.open_overlay({
|
||||
name: 'invite',
|
||||
overlay: $('#invite-user'),
|
||||
on_close: function () {
|
||||
hashchange.exit_modal();
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
$(function () {
|
||||
@@ -133,12 +139,6 @@ $(function () {
|
||||
$('#streams_to_add :checkbox').prop('checked', false);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
function invite_close_modal() {
|
||||
hashchange.exit_modal();
|
||||
}
|
||||
|
||||
modals.set_close_handler("invite", invite_close_modal);
|
||||
});
|
||||
|
||||
return exports;
|
||||
|
||||
Reference in New Issue
Block a user