var GFFeedOrder=function(e){var o=this,d=jQuery;o.init=function(){o.options=e;d(".wp-list-table thead tr, .wp-list-table tfoot tr").append(''),d(".wp-list-table tbody tr").append(''),o.initSorting()},o.initSorting=function(){d(".wp-list-table tbody").sortable({cursor:"move",handle:".feed-sort-handle",placeholder:"feed-placeholder",tolerance:"pointer",create:function(){d(".wp-list-table").addClass("feed-list-sortable")},helper:o.fixSortableColumnWidths,start:o.setPlaceholderHeight,update:o.updateFeedOrder})},o.fixSortableColumnWidths=function(e,t){var o=t.children(),n=t.clone();return n.children().each(function(e){d(this).width(o.eq(e).width())}),n},o.getFeedOrder=function(){return d('.wp-list-table tbody .check-column input[type="checkbox"]').map(function(){return d(this).val()}).get()},o.setPlaceholderHeight=function(e,t){d(".wp-list-table .feed-placeholder").height(t.item.height())},o.updateFeedOrder=function(e,t){d.ajax(ajaxurl,{method:"POST",dataType:"JSON",data:{action:"gf_save_feed_order",addon:o.options.addon,form_id:o.options.formId,feed_order:o.getFeedOrder(),nonce:o.options.nonce}})},this.init()};