From: Edward Date: Mon, 4 May 2015 07:36:20 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecurKeywords.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=fa9acc33bcbeed21aaaeade67c47908bc66c7d15 Pman.Dialog.CoreNotifyRecurKeywords.bjs Pman.Dialog.CoreNotifyRecurKeywords.js --- diff --git a/Pman.Dialog.CoreNotifyRecurKeywords.bjs b/Pman.Dialog.CoreNotifyRecurKeywords.bjs index b317a56a..28070df8 100644 --- a/Pman.Dialog.CoreNotifyRecurKeywords.bjs +++ b/Pman.Dialog.CoreNotifyRecurKeywords.bjs @@ -128,7 +128,7 @@ }, { "listeners" : { - "|click" : "function() {\n\n var name = _this.form.findField('name').getValue();\n name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n if (!name.length) {\n Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n return;\n }\n _this.form.findField('name').setValue(name);\n \n _this.form.doAction('submit');\n \n}" + "|click" : "function() {\n /*\n var name = _this.form.findField('name').getValue();\n name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n if (!name.length) {\n Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n return;\n }\n _this.form.findField('name').setValue(name);\n \n _this.form.doAction('submit');\n */\n \n}" }, "text" : "OK", "xtype" : "Button", diff --git a/Pman.Dialog.CoreNotifyRecurKeywords.js b/Pman.Dialog.CoreNotifyRecurKeywords.js index 78df6116..5747e717 100644 --- a/Pman.Dialog.CoreNotifyRecurKeywords.js +++ b/Pman.Dialog.CoreNotifyRecurKeywords.js @@ -76,7 +76,7 @@ Pman.Dialog.CoreNotifyRecurKeywords = { xtype : 'Button', listeners : { click : function() { - + /* var name = _this.form.findField('name').getValue(); name = name.toUpperCase().replace(/[^A-Z]+/g, ''); if (!name.length) { @@ -86,6 +86,7 @@ Pman.Dialog.CoreNotifyRecurKeywords = { _this.form.findField('name').setValue(name); _this.form.doAction('submit'); + */ } }