Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Remove changelogs, rename settings var to notifyAllMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolashohm committed Dec 21, 2015
1 parent 1c6945d commit 030c394
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
Unreleased
==========

* Implement option to get notifications also for messages not just for mentions

0.51.2 / 2015-09-18
==================

Expand Down
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ <h2>Notifications</h2>

<div class="col-sm-12">
<label class="opt">
<input type="checkbox" name="notifyMessage">
<input type="checkbox" name="notifyAllMessages">
Enable notification for all messages
</label>
</div>
Expand Down
6 changes: 3 additions & 3 deletions client/js/shout.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ $(function() {
part: true,
thumbnails: true,
quit: true,
notifyMessage: false,
notifyAllMessages: false,
}, $.cookie("settings"));

for (var i in options) {
Expand All @@ -373,7 +373,7 @@ $(function() {
"nick",
"part",
"quit",
"notifyMessage",
"notifyAllMessages",
].indexOf(name) !== -1) {
chat.toggleClass("hide-" + name, !self.prop("checked"));
}
Expand Down Expand Up @@ -577,7 +577,7 @@ $(function() {
var highlight = type.contains("highlight");
var message = type.contains("message");
var settings = $.cookie("settings") || {};
if (highlight || isQuery || (settings.notifyMessage && message)) {
if (highlight || isQuery || (settings.notifyAllMessages && message)) {
if (!document.hasFocus() || !$(target).hasClass("active")) {
if (settings.notification) {
pop.play();
Expand Down

0 comments on commit 030c394

Please sign in to comment.