Skip to content

Node.js based forum software built for the modern web

closes #3370

barisusaklid5128d051332
diff --git a/public/src/client/notifications.js b/public/src/client/notifications.js
index 2848704541..4f2dfbf197 100644
--- a/public/src/client/notifications.js
+++ b/public/src/client/notifications.js
@@ -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) {
diff --git a/src/user/approval.js b/src/user/approval.js
index d148842204..2c263d2c46 100644
--- a/src/user/approval.js
+++ b/src/user/approval.js
@@ -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) {