         window.modal_dialog.set_body( msg.body )
       .error (msg) ->
         console.log(msg)
-
     # 提交表单(修改)
     window.modal_dialog.get_modal_dialog().on "submit",".modal-body .page-levels-edit .simple_form", (event) ->
       level_id = $( this ).closest(".page-levels-edit").attr("data-level-id")

        window.modal_dialog.set_body( msg.body )
      .error (msg) ->
        console.log(msg)

    # 点击提交表单(修改)
    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")

        jQuery(".modal-content .modal-body .simple_form").addClass("hide")
        jQuery(".modal-content .modal-body .tree").removeClass("hide")
        jQuery(".modal-content .modal-body .tree-button").removeClass("hide")
    # 点击树中的确定按钮，隐藏树 显示表单
    window.modal_dialog.get_modal_dialog().on "click", ".modal-content .modal-body .tree-button", =>
      jQuery(".modal-content .modal-body .tree").addClass("hide")
