Pman.Dialog.XtupleSalesOrder.bjs
authorEdward <edward@roojs.com>
Tue, 21 Jan 2014 06:11:15 +0000 (14:11 +0800)
committerEdward <edward@roojs.com>
Tue, 21 Jan 2014 06:11:15 +0000 (14:11 +0800)
Pman.Dialog.XtupleSalesOrder.js

Pman.Dialog.XtupleSalesOrder.bjs
Pman.Dialog.XtupleSalesOrder.js

index a7ff0da..f4ac45a 100644 (file)
                                                             "name": "billto_address",
                                                             "readOnly": true,
                                                             "xtype": "TextArea",
-                                                            "|update": "function() {\n\n    var c = ['first_name', 'last_name' ] ;\n    var a = [ 'line1', 'line2', 'line3', 'city', 'state', 'country' ];\n    var v = [];\n    Roo.each(c, function(e) {\n        if (_this.data['cohead_billto_cntct_id_cntct_' +e].length) { \n            v.push(_this.data['cohead_billto_cntct_id_cntct_' +e]);\n        }\n    });\n    Roo.each(a, function(e) {\n        if (_this.data['cohead_billto_cntct_id_cntct_addr_id_addr_' +e].length) {\n            v.push(_this.data['cohead_billto_cntct_id_cntct_addr_id_addr_' +e]);\n        }\n    });\n\n    this.setValue(v.join(\"\\n\"));\n    \n    if(_this.data.cohead_billto_cntct_id_cntct_email.length){\n        _this.form.findField('billto_email').setValue('<a href=\"mailto:' + _this.data.cohead_billto_cntct_id_cntct_email + '\">' + _this.data.cohead_billto_cntct_id_cntct_email + '</a>');\n    }\n}\n",
+                                                            "|update": "function() {\n\n    var c = ['first_name', 'last_name' ] ;\n    var a = [ 'line1', 'line2', 'line3', 'city', 'state', 'country' ];\n    var v = [];\n    Roo.each(c, function(e) {\n        if (_this.data['cohead_billto_cntct_id_cntct_' +e].length) { \n            v.push(_this.data['cohead_billto_cntct_id_cntct_' +e]);\n        }\n    });\n    Roo.each(a, function(e) {\n        if (_this.data['cohead_billto_cntct_id_cntct_addr_id_addr_' +e].length) {\n            v.push(_this.data['cohead_billto_cntct_id_cntct_addr_id_addr_' +e]);\n        }\n    });\n\n    this.setValue(v.join(\"\\n\"));\n    \n    if(_this.data.cohead_billto_cntct_id_cntct_email.length){\n        _this.form.findField('billto_email').setValue(_this.data.cohead_billto_cntct_id_cntct_email);\n    }\n}\n",
                                                             "|xns": "Roo.form"
                                                         },
                                                         {
index 4e35e03..2394bc2 100644 (file)
@@ -771,7 +771,7 @@ Pman.Dialog.XtupleSalesOrder = {
                                                                 this.setValue(v.join("\n"));
                                                                 
                                                                 if(_this.data.cohead_billto_cntct_id_cntct_email.length){
-                                                                    _this.form.findField('billto_email').setValue('<a href="mailto:' + _this.data.cohead_billto_cntct_id_cntct_email + '">' + _this.data.cohead_billto_cntct_id_cntct_email + '</a>');
+                                                                    _this.form.findField('billto_email').setValue(_this.data.cohead_billto_cntct_id_cntct_email);
                                                                 }
                                                             }
                                                         },