From e94e2c27cf082fb8f597a4e7aef2f2bce3077ee4 Mon Sep 17 00:00:00 2001 From: Quinella Date: Sun, 22 Sep 2013 23:00:20 +0200 Subject: [PATCH] Renamed "persistent notifications" to "temporary notifications" --- js/client.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) {