日期:2014-05-17 浏览次数:20649 次
var articleForm = new Ext.form.FormPanel( { frame : true, // height:1030, // layout:{type:'absolute'}, region : 'center', labelAlign : 'right', buttonAlign : 'center', // autoDestroy:true, labelWidth : 55, items : [{ xtype : 'htmleditor', name: 'editDocContent', height : 200, anchor : '98%' }], buttons : [ { xtype : 'button', text : '保存', handler : function() { if(articleForm.form.isValid() == true){ articleForm.form.submit({ url: 'document/documentCreate.action', success: function(form, action){ articleFormShow.hide(); Ext.Msg.alert("提示", action.result.msgBack); articleGrid.load("document/documentSearch.action","articleList", 30, fieldsAll); }, failure : function() { Ext.Msg.alert('错误', '系统维护中!'); }, waitMsg : '正在上传数据,稍后...' }); } } }, { xtype : 'button', text : '重置' } ] });