text: $(document).ready(function(){$("#checkAll").on("click",function(){var a=$(this).is(":checked");$("input:checkbox").each(function(){$(this).prop("checked",a)})});$(".referenceCheckBox").on("click",function(){var b=$(this).is(":checked");if(b){$('input:hidden[name="references"]').val($('input:hidden[name="references"]').val()+$(this).val()+" ")}else{var a=$('input:hidden[name="references"]').val();a=a.replace($(this).val()+" ","");$('input:hidden[name="references"]').val(a)}});$("a.feature").on("click",function(b){b.preventDefault();var a=$(this);$.fn.bugglConfirm({onConfirm:function(){a.hide();a.siblings("span.loader").show();$.getJSON(a.attr("href"),function(c){a.siblings("span.loader").hide();$.fn.bugglAlert({title:c.status,content:"<p>"+c.message+"</p>",revealOptions:{closeOnBackgroundClick:false,closed:function(){if(c.status=="SUCCESS"){a.siblings(".feature").show()}else{a.show()}}}})})}})})});
  (function(a){a.fn.paginate=function(b){var c=a.extend({},a.fn.paginate.defaults,b);a(".bugglPaginationLink").on("click",function(f){f.preventDefault();if(a(this).hasClass("disabled")){return false}var d=a(this);d.parents("#"+c.containerId).children(".bugglPaginationContents").append("<span class='loader'>Loading...</span>");a.get(a(this).parents(".bugglPagination").attr("data-url"),{currentPage:d.attr("page")},function(e){a("#"+c.containerId).empty().append(e);a(".bugglPagination").paginate({containerId:c.containerId})})})};a.fn.paginate.defaults={containerId:"paginationContainer"}})(jQuery);