mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +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");
|
$('.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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue