1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00

Fix notify button

This commit is contained in:
DanieL 2022-04-23 10:59:54 -03:00
parent 043120439d
commit 70ec6589ae

View file

@ -434,6 +434,11 @@ function subscribe(email, user_id) {
$('.notificationButton' + user_id).addClass("subscribed"); $('.notificationButton' + user_id).addClass("subscribed");
totalElement.text(parseInt(totalElement.first().text()) + 1); totalElement.text(parseInt(totalElement.first().text()) + 1);
} }
if (!response.notify) {
$('.notificationButton' + user_id).removeClass("notify");
} else {
$('.notificationButton' + user_id).addClass("notify");
}
$('#popover-content #subscribeEmail').val(email); $('#popover-content #subscribeEmail').val(email);
$('.subscribeButton' + user_id).popover('hide'); $('.subscribeButton' + user_id).popover('hide');
modal.hidePleaseWait(); modal.hidePleaseWait();