Node.js based forum software built for the modern web
removed "mark all as read" language strings and removed button from notifications page -- fixes #785
Julian Lamdfd2df99e6e8
diff --git a/public/language/cs/notifications.json b/public/language/cs/notifications.jsonindex 1ef358a4ae..2578b0e1f1 100644--- a/public/language/cs/notifications.json+++ b/public/language/cs/notifications.json@@ -1,7 +1,6 @@{"title": "Upozornění","back_to_home": "Zpět na úvodní stránku",- "mark_all_as_read": "Označ vše jako přečtené","outgoing_link": "Odkaz mimo fórum","outgoing_link_message": "Nyní opouštíte fórum","continue_to": "Přejít na",diff --git a/public/language/de/notifications.json b/public/language/de/notifications.jsonindex 7e5ac112e9..2fa539cdc5 100644--- a/public/language/de/notifications.json+++ b/public/language/de/notifications.json@@ -1,7 +1,6 @@{"title": "Benachrichtigungen","back_to_home": "Zurück zur Startseite",- "mark_all_as_read": "Alles als gelesen markieren","outgoing_link": "Externer Link","outgoing_link_message": "Du verlässt nun","continue_to": "Gehe weiter zu",diff --git a/public/language/en/notifications.json b/public/language/en/notifications.jsonindex a115e1d6a9..a66ac79b89 100644--- a/public/language/en/notifications.json+++ b/public/language/en/notifications.json@@ -1,7 +1,6 @@{"title": "Notifications","back_to_home": "Back to NodeBB",- "mark_all_as_read": "Mark All as Read","outgoing_link": "Outgoing Link","outgoing_link_message": "You are now leaving","continue_to": "Continue to",diff --git a/public/language/es/notifications.json b/public/language/es/notifications.jsonindex 3ff280199b..cf8aabc09f 100644--- a/public/language/es/notifications.json+++ b/public/language/es/notifications.json@@ -1,7 +1,6 @@{"title": "Notificaciones","back_to_home": "Volver al Inicio",- "mark_all_as_read": "Marcar todo como leeido","outgoing_link": "Link Externo","outgoing_link_message": "Estas saliendo del sitio","continue_to": "Continuar",diff --git a/public/language/fr/notifications.json b/public/language/fr/notifications.jsonindex 844fbf2b9f..78c6943a31 100644--- a/public/language/fr/notifications.json+++ b/public/language/fr/notifications.json@@ -1,7 +1,6 @@{"title": "Notifications","back_to_home": "Retour à NodeBB",- "mark_all_as_read": "Tout marquer comme lu","outgoing_link": "Lien Sortant","outgoing_link_message": "Vous quitter NodeBB","continue_to": "Continuer vers",diff --git a/public/language/it/notifications.json b/public/language/it/notifications.jsonindex 0f72c979fe..c01b94733f 100644--- a/public/language/it/notifications.json+++ b/public/language/it/notifications.json@@ -1,7 +1,6 @@{"title": "Notifiche","back_to_home": "Torna alla pagina iniziale",- "mark_all_as_read": "Segna tutto come già letto","outgoing_link": "Link in uscita","outgoing_link_message": "Ci stai abbandonando","continue_to": "Continua verso",diff --git a/public/src/forum/notifications.js b/public/src/forum/notifications.jsindex 1028f78cdf..38bb3c80a2 100644--- a/public/src/forum/notifications.js+++ b/public/src/forum/notifications.js@@ -2,8 +2,7 @@ define(function() {var Notifications = {};Notifications.init = function() {- var listEl = $('.notifications-list'),- markAllReadEl = document.getElementById('mark-all-notifs-read');+ var listEl = $('.notifications-list');$('span.timeago').timeago();@@ -11,20 +10,6 @@ define(function() {listEl.on('click', 'li', function(e) {this.querySelector('a').click();});-- // Mark all as read button- $(markAllReadEl).click(function() {- socket.emit('api:modules.notifications.mark_all_read', {}, function() {- ajaxify.go('notifications');- app.alert({- alert_id: "notifications:mark_all_read",- title: "All Notifications Read",- message: "Successfully marked all notifications read",- type: 'success',- timeout: 2500- })- });- });}return Notifications;diff --git a/public/templates/notifications.tpl b/public/templates/notifications.tplindex 21c93a5547..32a506f403 100644--- a/public/templates/notifications.tpl+++ b/public/templates/notifications.tpl@@ -1,7 +1,5 @@<h2>[[notifications:title]]</h2>-<button type="button" class="btn btn-default" id="mark-all-notifs-read">[[notifications:mark_all_as_read]]</button>-<ul class="notifications-list"><!-- BEGIN notifications --><li data-nid="{notifications.nid}" class="{notifications.readClass}">