Attempt 2: Notifications in the composebox

This moves the notify-not-in-view notifications into the composebox area.
It also tries to be a bit smarter about what action it links and what it displays.

(imported from commit 1c79bd0d9ef972059a006b17501a09b72e961ee3)
This commit is contained in:
acrefoot
2013-11-13 13:40:02 -05:00
parent e7e2f0ee6e
commit e2c388c49c
7 changed files with 66 additions and 34 deletions

View File

@@ -199,7 +199,7 @@ exports.start = function (msg_type, opts) {
if (reload.is_in_progress()) {
return;
}
notifications.clear_compose_notifications();
$("#compose_close").show();
$("#compose_controls").hide();
$('.message_comp').show();
@@ -248,6 +248,7 @@ function abort_xhr () {
exports.cancel = function () {
$("#compose_close").hide();
clear_box();
notifications.clear_compose_notifications();
hide_box();
abort_xhr();
is_composing_message = false;