jQuery(document).ready((function($){$("#post-selection").length>0&&wpToSocialProInitSelectize("#post-selection"),$("body.wpzinc").on("change","input[name=toggle]",(function(o){$(this).is(":checked")?$("ul.categorychecklist input[type=checkbox]").prop("checked",!0):$("ul.categorychecklist input[type=checkbox]").prop("checked",!1)})),$("#progress-bar").length>0&&$("#progress-bar").synchronous_request({url:wp_to_social_pro_bulk_publish.ajax,number_requests:wp_to_social_pro_bulk_publish.number_of_requests,action:wp_to_social_pro_bulk_publish.action,nonce:wp_to_social_pro_bulk_publish.nonce,ids:wp_to_social_pro_bulk_publish.post_ids,stop_on_error:-1,onRequestSuccess:function(o,t){return $("tbody",$(this.log)).append(o.data),!0},onRequestError:function(o,t,e,n){return $("tbody",$(this.log)).append('<tr><td colspan="8">'+t+"</td></tr>"),!0},onFinished:function(){this.cancelled,$("tbody",$(this.log)).append('<tr><td colspan="8">'+wp_to_social_pro_bulk_publish.finished+"</td></tr>")}})}));