mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
This commit is contained in:
parent
f6015148d3
commit
0f717a5e2d
6 changed files with 30 additions and 7 deletions
|
@ -3,6 +3,8 @@ function getTemplateFromArray(itemsArray) {
|
|||
return false;
|
||||
}
|
||||
var template = user_notification_template;
|
||||
|
||||
template = template.replace(new RegExp('{placeholder}', 'g'), user_notification_template_placeholder_image);
|
||||
for (var search in itemsArray) {
|
||||
var replace = itemsArray[search];
|
||||
if (typeof replace == 'function') {
|
||||
|
@ -306,5 +308,14 @@ $(document).ready(function () {
|
|||
$(document).on('click', '#topMenuUserNotifications .dropdown-menu', function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('#topMenuUserNotifications').on('click', function (e) {
|
||||
$(this).find('.lazyload').lazy({
|
||||
effect: 'fadeIn',
|
||||
afterLoad: function (element) {
|
||||
element.removeClass('lazyload');
|
||||
element.addClass('lazyloadLoaded');
|
||||
}
|
||||
});
|
||||
});
|
||||
getUserNotification();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue