1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00
Daniel Neto 2023-11-16 10:54:08 -03:00
parent f6015148d3
commit 0f717a5e2d
6 changed files with 30 additions and 7 deletions

View file

@ -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();
});