ui-refactor: Rename modals.js to overlays.js.

Fixed #4702.
This commit is contained in:
Rohitt Vashishtha
2017-05-27 19:10:54 +05:30
committed by Tim Abbott
parent 1f4e1ece3a
commit 2d73e03e37
21 changed files with 87 additions and 87 deletions

View File

@@ -128,7 +128,7 @@ exports.restore_draft = function (draft_id) {
draft_copy);
}
modals.close_modal("drafts");
overlays.close_overlay("drafts");
compose_fade.clear_compose();
if (draft.type === "stream" && draft.stream === "") {
draft_copy.subject = "";
@@ -354,7 +354,7 @@ exports.drafts_handle_events = function (e, event_key) {
exports.toggle = function () {
if (exports.drafts_overlay_open()) {
modals.close_modal("drafts");
overlays.close_overlay("drafts");
} else {
exports.launch();
}
@@ -362,7 +362,7 @@ exports.toggle = function () {
exports.launch = function () {
exports.setup_page(function () {
modals.open_overlay({
overlays.open_overlay({
name: 'drafts',
overlay: $('#draft_overlay'),
on_close: function () {