ACMS.Dispatch.Edit._direct=function(elm){var $action=$(elm).parent("form").attr("action");var $admin=$(elm).nextAll('input[name="admin"]').val();var $fragment=$(elm).nextAll('input[name="fragment"]').val();var $bid=$(elm).nextAll('input[name="bid"]').val();var $cid=$(elm).nextAll('input[name="cid"]').val();var $eid=$(elm).nextAll('input[name="eid"]').val();$.ajax({type:"POST",admin:$admin,url:$action,data:{ACMS_POST_Entry_Direct:true,bid:$bid,cid:$cid,eid:$eid,admin:$admin,fragment:$fragment},success:function(res){if(0===
$(".ui-sortable .js-edit_inplace:last").size()){location.reload();return false}else{var $resdata=$(res);if($(":first-child",res).hasClass("js-edit_inplace"))$(".entryColumn.ui-sortable > :last").after($resdata);else $(".ui-sortable .js-edit_inplace:last").after($resdata);if(jQuery.support.opacity)$resdata.each(function(){if(0||$(this).hasClass("js-edit_inplace")||$(this).find(".js-edit_inplace").length)$(this).fadeTo(250,0.1).fadeTo(450,$(this).css("opacity"))});ACMS.Dispatch($resdata.parent()[0])}},
failed:function(){console.log("ACMS.Dispatch.Edit._direct failed")}})};
