v1.18.x
barisusakli 10 years ago
parent e592499d48
commit d5128d0513

@ -7,7 +7,7 @@ define('forum/notifications', ['components', 'notifications'], function(componen
Notifications.init = function() {
var listEl = $('.notifications-list');
listEl.on('click', 'a', function(e) {
listEl.on('click', '[component="notifications/item/link"]', function(e) {
var nid = $(this).parents('[data-nid]').attr('data-nid');
socket.emit('notifications.markRead', nid, function(err) {
if (err) {

@ -46,7 +46,7 @@ module.exports = function(User) {
function sendNotificationToAdmins(username, callback) {
notifications.create({
bodyShort: '[[notifications:new_register, ' + username + ']]',
nid: 'new_register' + username,
nid: 'new_register:' + username,
path: '/admin/manage/users/registration'
}, function(err, notification) {
if (err) {

Loading…
Cancel
Save