1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
This commit is contained in:
DanieL 2022-08-30 12:53:47 -03:00
parent 3832013df2
commit 8648ec0fb4

View file

@ -15,7 +15,7 @@ function getTemplateFromArray(itemsArray) {
m = moment.tz(itemsArray.created, _serverSystemTimezone).local();
replace = m.fromNow();
} else if (search == 'href' && !empty(replace) && !isValidURL(replace)) {
replace = webSiteRootURL+replace;
replace = webSiteRootURL + replace;
}
template = template.replace(new RegExp('{' + search + '}', 'g'), replace);
}
@ -65,7 +65,7 @@ function cleanUpTemplate(template) {
}
function userNotification(itemsArray, toast, customTitle) {
console.log('UserNotification::userNotification',itemsArray, toast, customTitle);
console.log('UserNotification::userNotification', itemsArray, toast, customTitle);
addTemplateFromArray(itemsArray);
var title = itemsArray.title;
@ -118,7 +118,7 @@ function updateUserNotificationCount() {
_updateUserNotificationCountTimeout = setTimeout(function () {
var valueNow = parseInt($('#topMenuUserNotifications a > span.badge-notify').text());
var total = $('#topMenuUserNotifications > ul .list-group a').length;
console.log('updateUserNotificationCount 2', total);
console.log('updateUserNotificationCount', total);
if (total <= 0) {
$('#topMenuUserNotifications').addClass('hasNothingToShow');
$('#topMenuUserNotifications').removeClass('hasSomethingToShow');