adding link to notifications page in notifications dropdown

This commit is contained in:
Julian Lam
2013-10-22 18:10:51 -04:00
parent 468688615f
commit b29616fbd8

View File

@@ -126,6 +126,13 @@
notifEl.innerHTML = '<a>You have no notifications</a>';
notifFrag.appendChild(notifEl);
}
// Add dedicated link to /notifications
notifEl.removeAttribute('data-nid');
notifEl.className = 'pagelink';
notifEl.innerHTML = '<a href="' + RELATIVE_PATH + '/notifications">See all Notifications</a>';
notifFrag.appendChild(notifEl);
notifList.appendChild(notifFrag);
if (data.unread.length > 0) notifIcon.className = 'icon-circle active';