- buttons : [
- {
- '|xns' : 'Roo',
- text : _this._strings['ea4788705e6873b424c65e91c2846b19'],
- xns : Roo,
- xtype : 'Button',
- listeners : {
- click : function() {
- _this.form.reset();
- _this.dialog.hide();
- }
- }
- },
-{
- '|xns' : 'Roo',
- text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'],
- xns : Roo,
- xtype : 'Button',
- listeners : {
- click : function() {
-
- var name = _this.form.findField('name').getValue();
- name = name.toUpperCase().replace(/[^A-Z]+/g, '');
- if (!name.length) {
- Roo.MessageBox.alert("Error","Please fill in a valid name");
- return;
- }
- _this.form.findField('name').setValue(name);
-
- _this.form.doAction('submit');
-
- }
- }
- }
- ],