mirror of https://github.com/zulip/zulip.git
Remove Notification (?) explanation popover.
(imported from commit f261f87c9571a76b8b0e2538ccb3bb4826ef449e)
This commit is contained in:
parent
dfc462c24d
commit
d89696291f
|
@ -1530,19 +1530,6 @@ $(function () {
|
|||
$("#api_key_button_box").hide();
|
||||
});
|
||||
|
||||
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_content_button', function (e) {
|
||||
var row = current_msg_list.get_row(rows.id($(this).closest(".message_row")));
|
||||
message_edit.start(row);
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{{! Explanation of when notifications fire }}
|
||||
<div>
|
||||
|
||||
<p>If enabled, you will get desktop notifications for the following:</p>
|
||||
|
||||
<ul>
|
||||
<li>a private message</li>
|
||||
<li>a message that @-mentions you</li>
|
||||
<li>a message to a stream you have configured to show desktop notifications (via the streams page)</li>
|
||||
<li>any custom word alerts that you have configured</li>
|
||||
</ul>
|
||||
<br />
|
||||
<p>If the Zulip window is in focus and you can already see the message when it arrives, we won't notify you.</p>
|
||||
|
||||
</div>
|
|
@ -91,7 +91,7 @@
|
|||
<form action="/json/notify_settings/change" method="post"
|
||||
class="form-horizontal notify-settings">{% csrf_token %}
|
||||
<div id="notification-settings" class="settings-section">
|
||||
<div class="settings-section-title"><i class="icon-vector-warning-sign settings-section-icon"></i>Notifications <i class="tiny icon-vector-question-sign" id="notification-docs"></i></div>
|
||||
<div class="settings-section-title"><i class="icon-vector-warning-sign settings-section-icon"></i>Notifications</div>
|
||||
<div class="alert" id="notify-settings-status"></div>
|
||||
<div class="notification-settings-form">
|
||||
<h4>Stream messages</h4>
|
||||
|
|
|
@ -388,14 +388,6 @@ function render(template_name, args) {
|
|||
assert.equal(title.text().trim(), 'You have a notification');
|
||||
}());
|
||||
|
||||
(function notification_docs() {
|
||||
var html = render('notification_docs');
|
||||
global.write_test_output("notification_docs.handlebars", html);
|
||||
|
||||
var title = $(html).find("li:first");
|
||||
assert.equal(title.text().trim(), 'a private message');
|
||||
}());
|
||||
|
||||
(function sidebar_subject_list() {
|
||||
var args = {
|
||||
want_show_more_topics_links: true,
|
||||
|
|
Loading…
Reference in New Issue