init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[invitations]
|
||||
received = Received Invitations
|
||||
adds_you = %s wants to add you
|
||||
no_new = No new invitations
|
||||
no_subscriptions = No pending subscriptions
|
||||
wants_to_talk = %s wants to talk with you
|
||||
|
||||
[notifs]
|
||||
title = Notifications
|
||||
empty = No new notifications
|
||||
@@ -0,0 +1,4 @@
|
||||
#notifications_subscriptions:not(:empty) + .placeholder,
|
||||
#notifications_invitations:not(:empty) + .placeholder {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
var Notifications = {
|
||||
setCounters : function(counter) {
|
||||
var counters = document.querySelectorAll('.counter.notifications:not([data-key])');
|
||||
for (i = 0; i < counters.length; i++) {
|
||||
counters[i].innerHTML = counter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MovimWebsocket.attach(function() {
|
||||
Notifications_ajaxSetCounter();
|
||||
});
|
||||
Reference in New Issue
Block a user