Ext.ns("Sonia.message");Sonia.message.ConfigPanel=Ext.extend(Sonia.repository.PropertiesFormPanel,{formTitleText:"信息",regexText:"正则表达式",regexHelpText:"验证提交消息的正则表达式",initComponent:function(){var config={title:this.formTitleText,items:[{name:"messageRegex",fieldLabel:this.regexText,property:"message.regex",helpText:this.regexHelpText}]};Ext.apply(this,Ext.apply(this.initialConfig,config));Sonia.message.ConfigPanel.superclass.initComponent.apply(this,arguments)}});
Ext.reg("messageConfigPanel",Sonia.message.ConfigPanel);Sonia.repository.openListeners.push(function(repository,panels){if(Sonia.repository.isOwner(repository))panels.push({xtype:"messageConfigPanel",item:repository})});