Pman.Dialog.XtupleQuickContact.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 12 Nov 2014 03:02:38 +0000 (11:02 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 12 Nov 2014 03:02:38 +0000 (11:02 +0800)
Pman.Dialog.XtupleQuickContact.js

Pman.Dialog.XtupleQuickContact.bjs
Pman.Dialog.XtupleQuickContact.js

index 7645c1b..d0cbfaa 100644 (file)
                                     "$ xns" : "Roo.form",
                                     "items" : [
                                         {
-                                            "listWidth" : 150,
-                                            "triggerAction" : "all",
-                                            "fieldLabel" : "Advalue Currency",
-                                            "selectOnFocus" : true,
-                                            "displayField" : "code",
-                                            "hiddenName" : "orig_advalue_currency",
-                                            "value" : "",
-                                            "valueField" : "code",
-                                            "xtype" : "ComboBox",
-                                            "allowBlank" : true,
-                                            "typeAhead" : false,
-                                            "actionMode" : "fieldEl",
-                                            "editable" : false,
-                                            "width" : 100,
+                                            "fieldLabel" : "Phone",
+                                            "xtype" : "TextField",
+                                            "$ regex" : "/^[0-9 +-]+$/",
+                                            "width" : 150,
                                             "$ xns" : "Roo.form",
-                                            "name" : "currency_title",
-                                            "qtip" : "Select Currency",
-                                            "$ store" : "Pman.I18n.currencyStore()"
+                                            "name" : "cntct_phone"
                                         },
                                         {
-                                            "fieldLabel" : "Advalue",
-                                            "xtype" : "NumberField",
-                                            "actionMode" : "fieldEl",
-                                            "allowDecimals" : false,
-                                            "width" : 70,
+                                            "fieldLabel" : "Phone (Alt)",
+                                            "xtype" : "TextField",
+                                            "$ regex" : "/^[0-9 +-]+$/",
+                                            "width" : 150,
                                             "$ xns" : "Roo.form",
-                                            "name" : "orig_advalue"
+                                            "name" : "cntct_phone1"
                                         }
                                     ]
                                 },
-                                {
-                                    "fieldLabel" : "Phone",
-                                    "xtype" : "TextField",
-                                    "$ regex" : "/^[0-9 +-]+$/",
-                                    "width" : 150,
-                                    "$ xns" : "Roo.form",
-                                    "name" : "cntct_phone"
-                                },
-                                {
-                                    "fieldLabel" : "Phone (Alt)",
-                                    "xtype" : "TextField",
-                                    "$ regex" : "/^[0-9 +-]+$/",
-                                    "width" : 150,
-                                    "$ xns" : "Roo.form",
-                                    "name" : "cntct_phone1"
-                                },
                                 {
                                     "fieldLabel" : "Email",
                                     "vtype" : "email",
index 9f1705e..1770025 100644 (file)
@@ -149,56 +149,25 @@ Pman.Dialog.XtupleQuickContact = {
                                     items : [
                                        {
                                             '|xns' : 'Roo.form',
-                                            listWidth : 150,
-                                            triggerAction : 'all',
-                                            fieldLabel : 'Advalue Currency',
-                                            selectOnFocus : true,
-                                            displayField : 'code',
-                                            hiddenName : 'orig_advalue_currency',
-                                            value : "",
-                                            valueField : 'code',
-                                            xtype : 'ComboBox',
-                                            allowBlank : true,
-                                            typeAhead : false,
-                                            actionMode : 'fieldEl',
-                                            editable : false,
-                                            width : 100,
+                                            fieldLabel : 'Phone',
+                                            xtype : 'TextField',
+                                            regex : /^[0-9 +-]+$/,
+                                            width : 150,
                                             xns : Roo.form,
-                                            name : 'currency_title',
-                                            qtip : "Select Currency",
-                                            store : Pman.I18n.currencyStore()
+                                            name : 'cntct_phone'
                                         },
                                        {
                                             '|xns' : 'Roo.form',
-                                            fieldLabel : 'Advalue',
-                                            xtype : 'NumberField',
-                                            actionMode : 'fieldEl',
-                                            allowDecimals : false,
-                                            width : 70,
+                                            fieldLabel : 'Phone (Alt)',
+                                            xtype : 'TextField',
+                                            regex : /^[0-9 +-]+$/,
+                                            width : 150,
                                             xns : Roo.form,
-                                            name : 'orig_advalue'
+                                            name : 'cntct_phone1'
                                         }
                                     ]
 
                                 },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    fieldLabel : 'Phone',
-                                    xtype : 'TextField',
-                                    regex : /^[0-9 +-]+$/,
-                                    width : 150,
-                                    xns : Roo.form,
-                                    name : 'cntct_phone'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    fieldLabel : 'Phone (Alt)',
-                                    xtype : 'TextField',
-                                    regex : /^[0-9 +-]+$/,
-                                    width : 150,
-                                    xns : Roo.form,
-                                    name : 'cntct_phone1'
-                                },
                                {
                                     '|xns' : 'Roo.form',
                                     fieldLabel : 'Email',