Use modal.open_overlay() in invite.js.

This commit is contained in:
Steve Howell
2017-05-05 15:41:47 -07:00
committed by Tim Abbott
parent 6d1a6934b8
commit 02c743853c

View File

@@ -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;