Document how our desktop notifications work.

(imported from commit 991d7541283d7d8d17836f5322abb0da780eba25)
This commit is contained in:
Tim Abbott
2013-07-15 17:50:53 -04:00
parent 0975cfadf1
commit 84a97f5c41
4 changed files with 36 additions and 4 deletions

View File

@@ -1261,6 +1261,19 @@ $(function () {
ui.wait_for_gravatar();
});
var notification_docs = $("#notification-docs");
notification_docs.popover({"placement": "right",
"content": templates.render('notification_docs'),
"trigger": "manual"});
$("body").on("mouseover", "#notification-docs", function (e) {
notification_docs.popover('show');
e.stopPropagation();
});
$("body").on("mouseout", "#notification-docs", function (e) {
notification_docs.popover('hide');
e.stopPropagation();
});
$('body').on('click', '.edit_subject', function (e) {
var row = rows.get(rows.id($(this).closest(".recipient_row")),
current_msg_list.table_name);