You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
340 B
JavaScript
17 lines
340 B
JavaScript
11 years ago
|
define('forum/notifications', function() {
|
||
|
var Notifications = {};
|
||
|
|
||
|
Notifications.init = function() {
|
||
|
var listEl = $('.notifications-list');
|
||
|
|
||
|
$('span.timeago').timeago();
|
||
|
|
||
|
// Allow the user to click anywhere in the LI
|
||
|
listEl.on('click', 'li', function(e) {
|
||
|
this.querySelector('a').click();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
return Notifications;
|
||
|
});
|