From: edward Date: Mon, 18 Jul 2016 06:08:50 +0000 (+0800) Subject: Pman.Dialog.CoreEmail.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1deb08e45ee7fc858b544b6118584ab2bc921018 Pman.Dialog.CoreEmail.bjs Pman.Dialog.CoreEmail.js --- diff --git a/Pman.Dialog.CoreEmail.bjs b/Pman.Dialog.CoreEmail.bjs index ad1bb885..1110f03c 100644 --- a/Pman.Dialog.CoreEmail.bjs +++ b/Pman.Dialog.CoreEmail.bjs @@ -267,7 +267,7 @@ "items" : [ { "listeners" : { - "check" : "function (_self, checked)\n{\n Roo.log(['active : ', checked]);\n \n var boxLabel = 'Enabled - will be sent out';\n \n if(!checked){\n boxLabel = 'Disabled - will NOT be sent out right of \\'Mailout Name\\'';\n }\n \n Roo.log(boxLabel);\n \n this.setBoxLabel = boxLabel;\n}" + "check" : "function (_self, checked)\n{\n var boxLabel = 'Enabled - will be sent out';\n \n if(!checked){\n boxLabel = 'Disabled - will NOT be sent out right of \\'Mailout Name\\'';\n }\n \n this.setBoxLabel(boxLabel);\n}" }, "String name" : "active", "Boolean checked" : true, diff --git a/Pman.Dialog.CoreEmail.js b/Pman.Dialog.CoreEmail.js index 2735a382..f6b7bda8 100644 --- a/Pman.Dialog.CoreEmail.js +++ b/Pman.Dialog.CoreEmail.js @@ -627,17 +627,13 @@ Pman.Dialog.CoreEmail = { listeners : { check : function (_self, checked) { - Roo.log(['active : ', checked]); - var boxLabel = 'Enabled - will be sent out'; if(!checked){ boxLabel = 'Disabled - will NOT be sent out right of \'Mailout Name\''; } - Roo.log(boxLabel); - - this.setBoxLabel = boxLabel; + this.setBoxLabel(boxLabel); } } }