I\'ve got this function:
$(document).ready(function() { $(\'.post_button, .btn_favorite\').click(function() { //Fade in the Popup $(\'.login_modal_message\
That is because you are using dynamic content.
You need to change your click call to a delegated method like on
on
$('.post_button, .btn_favorite').on('click', function() {
or
$("body").on( "click", ".post_button, .btn_favorite", function( event ) {