Fix notification sound input field and handling mentions not sounding

This commit is contained in:
Jeremy Zhang 2017-12-12 21:45:21 +00:00
parent de5b96abb1
commit 14078fdabd
3 changed files with 4 additions and 3 deletions

View File

@ -387,7 +387,7 @@ textarea.materialize-textarea:focus:not([readonly]) {
font-size: 85%;
}
.input-field label {
label {
color: white;
}

View File

@ -1069,7 +1069,8 @@
}
if (replace == null) {
play_notification_sound("new");
} else if ($("#chatcontent p:last-child.mentioned").length) {
}
if ($("#chatcontent p:last-child.mentioned").length) {
play_notification_sound("mention");
}
if (replace == null && jumpscroll) {

View File

@ -146,7 +146,7 @@
</div>
<h4>{{ _("Notification Sound") }}</h4>
<div class="row">
<div class="input-field col s12">
<div class="col s12">
<span>
<input name="notification_sound_radiobtn" type="radio" id="notification_sound_radiobtn_newmsgs" value="newmsgs" />
<label for="notification_sound_radiobtn_newmsgs">{{ _("New Messages") }}</label>