jQuery(document).ready(function(t){t(document).on("click",".cfm-episodes-loadmore button",function(o){o.preventDefault(),$button=t(this),$button_html=$button.html(),$shortcode_container=$button.parent().prop("id"),$shortcode_id=t(this).attr("data-shortcode-id"),$shortcode_atts=t(this).attr("data-shortcode-atts"),$max_page=t(this).attr("data-max-page"),$current_page=t(this).attr("data-current-page"),$current_page++,$button.prop("disabled",!0).html("Loading..."),t.ajax({url:cfmsync_front.ajaxurl,type:"post",data:{action:"shortcode-loadmore",_nonce:cfmsync_front.ajaxnonce,shortcode_id:$shortcode_id,shortcode_atts:JSON.parse($shortcode_atts),max_page:$max_page,current_page:$current_page},success:function(o){"no_more"==o?$button.remove():"nothing_found"==o||($button.prop("disabled",!1).html($button_html),t("#cfm-episodes-"+$shortcode_id).append(o),$button.attr("data-current-page",$current_page),$current_page==$max_page&&$button.remove())}})})});