         that.set_failure_im(msg)
 
     window.modal_dialog.get_modal_dialog().on "click", ".modal-content .modal-body .post_business_categories .bsns_btn", =>
-      ctgr_selected_data = jQuery(".modal-content .modal-body .tree").attr("data-ctgr-selected")
-      if ctgr_selected_data isnt undefined
-        for category in ctgr_selected_data
-          console.log category.post_ids
-
-      console.log(ctgr_selected_data)
+      judge_load = that.judge_inited
+      if judge_load is undefined
+        ctgr_selected_data = jQuery(".modal-content .modal-body .tree").attr("data-ctgr-selected")
+        result = new Array()
+        if ctgr_selected_data isnt undefined
+          json_obj = JSON.parse(ctgr_selected_data)
+          for category in json_obj
+            selected_id = category._id.$oid
+            result.push(selected_id)
+        # if result.length isnt 0
+        #   json_result_string = JSON.stringify(result)
+        #   json_result = JSON.parse(json_result_string)
+
+        #   console.log( json_result )
+        #   console.log result
       jQuery.ajax
         url: "/business_categories.json"
         method: "get"

      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", ->
