Pman.Dialog.XtupleVendorEdit.bjs
authorEdward <edward@roojs.com>
Thu, 30 Jan 2014 05:46:03 +0000 (13:46 +0800)
committerEdward <edward@roojs.com>
Thu, 30 Jan 2014 05:46:03 +0000 (13:46 +0800)
Pman.Dialog.XtupleVendorEdit.js

Pman.Dialog.XtupleVendorEdit.bjs
Pman.Dialog.XtupleVendorEdit.js

index cfec53e..21f9966 100644 (file)
                                         },
                                         {
                                             "listeners": {
-                                                "|click": "function()\n{\n     var s = _this.form.findField('vend_id').getValue() * 1;\n     \n     if(!s || s * 1 < 1){\n        Roo.MessageBox.alert('Error', 'Save first!');\n        return;\n     }\n     \n     Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete all the address?\",\n        function(v) {\n            if (v != 'yes') {\n                return;\n            }\n             new Pman.Request({\n                method: 'POST',\n                url: baseURL+ '/Roo/vendinfo',\n                params : {\n                    vendaddr_vend_id : s,\n                    _deleteAll : 1\n                },\n                success : function() {\n                    _this.agrid.footer.onClick('refresh');\n                }\n            });\n    });\n}\n        "
+                                                "|click": "function()\n{\n     var s = _this.form.findField('vend_id').getValue() * 1;\n     \n     if(!s || s * 1 < 1){\n        Roo.MessageBox.alert('Error', 'Save first!');\n        return;\n     }\n     \n     Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete all the address?\",\n        function(v) {\n            if (v != 'yes') {\n                return;\n            }\n             new Pman.Request({\n                method: 'POST',\n                url: baseURL+ '/Roo/vendinfo',\n                params : {\n                    vend_id : s,\n                    _remove_addr : 1\n                },\n                success : function() {\n                    _this.agrid.footer.onClick('refresh');\n                }\n            });\n    });\n}\n        "
                                             },
                                             "cls": "x-btn-text-icon",
                                             "text": "Delete All",
index 332a12a..797cec0 100644 (file)
@@ -991,8 +991,8 @@ Pman.Dialog.XtupleVendorEdit = {
                                                         method: 'POST',
                                                         url: baseURL+ '/Roo/vendinfo',
                                                         params : {
-                                                            vendaddr_vend_id : s,
-                                                            _deleteAll : 1
+                                                            vend_id : s,
+                                                            _remove_addr : 1
                                                         },
                                                         success : function() {
                                                             _this.agrid.footer.onClick('refresh');