mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
removed "mark all as read" language strings and removed button from notifications page -- fixes #785
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}">
|
||||
|
||||
Reference in New Issue
Block a user