Pman.Dialog.XtupleUploadHSBC.bjs
authorEdward <edward@roojs.com>
Thu, 27 Feb 2014 09:18:27 +0000 (17:18 +0800)
committerEdward <edward@roojs.com>
Thu, 27 Feb 2014 09:18:27 +0000 (17:18 +0800)
Pman.Dialog.XtupleUploadHSBC.js

Pman.Dialog.XtupleUploadHSBC.bjs
Pman.Dialog.XtupleUploadHSBC.js

index 11bf56c..9ac1942 100644 (file)
@@ -40,7 +40,7 @@
                                 {
                                     "listeners": {
                                         "render": "function (_self)\n{\n    _this.bankSel = _self;\n}",
-                                        "edit": "function (combo, record)\n{\n\n\n}"
+                                        "edit": "function (combo, record)\n{\n    var s = _this.form.findField('city_id').getValue() * 1;\n    if(s < 1){\n        Roo.MessageBox.alert('Error','Please select a city');\n        return;\n    }\n    \n    Pman.Dialog.SocialCities.show({id : s}, function(res){\n        _this.form.findField('city_id').setFromData(res);\n    });\n    \n}"
                                     },
                                     "allowBlank": false,
                                     "displayField": "bankaccnt_name",
index 6a34d33..bfcc953 100644 (file)
@@ -85,8 +85,16 @@ Pman.Dialog.XtupleUploadHSBC = {
                                         },
                                         edit : function (combo, record)
                                         {
-                                        
-                                        
+                                            var s = _this.form.findField('city_id').getValue() * 1;
+                                            if(s < 1){
+                                                Roo.MessageBox.alert('Error','Please select a city');
+                                                return;
+                                            }
+                                            
+                                            Pman.Dialog.SocialCities.show({id : s}, function(res){
+                                                _this.form.findField('city_id').setFromData(res);
+                                            });
+                                            
                                         }
                                     },
                                     allowBlank : false,