ACMS.Dispatch._revision=function(context){$(".js-get_revision_preview").click(function(){var $previewBox=$("#js-revision_preview");var $url=$(this).attr("href");var $rvid=ACMS.Library.getParameterByName("rvid",$url);var $url=ACMS.Library.acmsLink({eid:ACMS.Config.eid,tpl:"ajax/revision-preview.html",Query:{rvid:$rvid}},true);window.open($url,"_blank");return false});$(".js-revision_delete").click(function(){var $id=$(this).attr("id");var $row=$(this).parents("tr");if(!$id.match(/^(\d+)-(\d+)-(\d+)$/))return false;
else var _bid=RegExp.$1,_eid=RegExp.$2,_rvid=RegExp.$3;if(confirm("\u9078\u629e\u3055\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3053\u306e\u64cd\u4f5c\u306f\u53d6\u308a\u6d88\u305b\u307e\u305b\u3093\u3002")){var url=ACMS.Library.acmsLink({eid:_eid,bid:_bid,Query:{rvid:_rvid}},true);$.ajax({url:url,type:"post",dataType:"html",data:{ACMS_POST_Revision_Delete:true},success:function(res){if(res=="OK"){$(this).unbind();$row.fadeOut("slow");$row.remove()}}})}else return false})};
