diff --git a/js/client.js b/js/client.js index 065362042..05a4065fe 100644 --- a/js/client.js +++ b/js/client.js @@ -1630,7 +1630,7 @@ notification.onclick = function() { self.clickNotification(tag); }; - if (Tools.prefs('nopnotifications')) { + if (Tools.prefs('temporarynotifications')) { setTimeout(function () { notification.cancel(); }, 5000); @@ -2210,7 +2210,7 @@ events: { 'change input[name=noanim]': 'setNoanim', 'change input[name=nolobbypm]': 'setNolobbypm', - 'change input[name=pnotifications]': 'setPersistentNotifications', + 'change input[name=temporarynotifications]': 'setTemporaryNotifications', 'change input[name=ignorespects]': 'setIgnoreSpects', 'change select[name=bg]': 'setBg', 'change select[name=timestamps-lobby]': 'setTimestampsLobby', @@ -2232,7 +2232,7 @@ buf += '

'; if (window.Notification) { - buf += '

'; + buf += '

'; } var timestamps = this.timestamps = (Tools.prefs('timestamps') || {}); @@ -2290,9 +2290,9 @@ var nolobbypm = !!e.currentTarget.checked; Tools.prefs('nolobbypm', nolobbypm); }, - setPersistentNotifications: function (e) { - var nopnotifications = !e.currentTarget.checked; - Tools.prefs('nopnotifications', nopnotifications); + setTemporaryNotifications: function (e) { + var temporarynotifications = !!e.currentTarget.checked; + Tools.prefs('temporarynotifications', temporarynotifications); }, setIgnoreSpects: function(e) { if (app.curRoom.battle) {