 
     window.modal_dialog.get_modal_dialog().on "submit",".modal-body .page-posts-form-edit .simple_form", ->
       post_id = $(this).closest(".page-posts-form-edit").attr("data-post-id")
-      event.preventDefault();
+      event.preventDefault()
+      post_form_data = $( this ).serializeArray()
+      tree = that.tree_to_bsns_ctgr
+      if tree isnt undefined
+        tree_ids = $.map($('.modal-content .modal-body .tree').treeview('getChecked', 0),(tree) -> return tree.id)
+        for bsns_id in tree_ids
+          bsns_tree_ids = { 'name' : 'post[business_category_ids][]', 'value' : bsns_id }
+          post_form_data.push( bsns_tree_ids )
+
       $.ajax
         method: "PATCH",
         url: "/posts/"+post_id+"",
-        data: $( this ).serializeArray()
+        data: post_form_data
       .success ( msg ) =>
         that.set_success_im(msg,post_id)
       .error (msg) =>

      if tree isnt undefined
        tree_ids = $.map($('.modal-content .modal-body .tree').treeview('getChecked', 0),(tree) -> return tree.id)
        for bsns_id in tree_ids
          bsns_tree_ids = { 'name' : 'post[business_category_ids][]', 'value' : bsns_id } 
          post_form_data.push( bsns_tree_ids )

      $.ajax

      jQuery(".modal-content .modal-body .tree").addClass("hide")
      jQuery(".modal-content .modal-body .simple_form").removeClass("hide")
      jQuery(".modal-content .modal-body .tree-button").addClass("hide")
      that.judge_inited = true

    # 岗位信息修改
    @$elm.on "click",".post-list .post .update-post", ->
