if (formObj.isValid()) {
formObj.submit({
waitTitle : '发送数据',
waitMsg : '正在保存...',
timeout : 2000,
success : function(form, action) {
var store=tree.getStore();
store.treeStore.load({node:store.treeStore.getNodeById(pId)});
editForm.close();
Ext.example.msg("提示","用户信息修改成功");
},
failure : function(form, action) {
editForm.close();
Ext.Msg.alert('错误信息', "原因未知");
}
})
editForm.close();
}