mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Fix notify button
This commit is contained in:
parent
043120439d
commit
70ec6589ae
1 changed files with 5 additions and 0 deletions
|
@ -434,6 +434,11 @@ function subscribe(email, user_id) {
|
|||
$('.notificationButton' + user_id).addClass("subscribed");
|
||||
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);
|
||||
$('.subscribeButton' + user_id).popover('hide');
|
||||
modal.hidePleaseWait();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue