text: $(document).ready(function(){JobEngine.Views.Category=Backbone.View.extend({el:$("#entry-list"),events:{"click #load-more-post":"loadMorePost"},page:1,initialize:function(){this.page=1},loadMorePost:function(e){e.preventDefault();var t=$(e.currentTarget),n=this.$el.find("input#template"),r=this.$el.find("ul"),i=this,s=this.page+1;var o=new JobEngine.Views.LoadingButton({el:$("#load-more-post")});$.ajax({url:et_globals.ajaxURL,type:"post",data:{page:s,action:"et-load-more-post",template_value:n.val(),template:n.attr("name")},beforeSend:function(){i.page++;o.loading()},success:function(e){if(e.success){r.append(e.data);o.finish();if(i.page>=e.total){t.hide()}}else{o.finish();t.hide();i.page--}}})}});new JobEngine.Views.Category})