mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
drafts: Rename open_modal -> open_overlay.
We consider the drafts thing to be an overlay, not a modal, so the old name was confusing.
This commit is contained in:
@@ -320,7 +320,7 @@ run_test('format_drafts', () => {
|
||||
return '<draft table stub>';
|
||||
});
|
||||
|
||||
drafts.open_modal = noop;
|
||||
drafts.open_overlay = noop;
|
||||
drafts.set_initial_element = noop;
|
||||
$("#drafts_table .draft-row").length = 0;
|
||||
|
||||
|
||||
@@ -360,7 +360,7 @@ exports.launch = function () {
|
||||
// element in order for the CSS transition to take effect.
|
||||
$('#draft_overlay').css('opacity');
|
||||
|
||||
exports.open_modal();
|
||||
exports.open_overlay();
|
||||
exports.set_initial_element(drafts);
|
||||
setup_event_handlers();
|
||||
};
|
||||
@@ -485,7 +485,7 @@ exports.drafts_handle_events = function (e, event_key) {
|
||||
}
|
||||
};
|
||||
|
||||
exports.open_modal = function () {
|
||||
exports.open_overlay = function () {
|
||||
overlays.open_overlay({
|
||||
name: 'drafts',
|
||||
overlay: $('#draft_overlay'),
|
||||
|
||||
Reference in New Issue
Block a user