From: Edward Date: Thu, 30 Jan 2014 05:46:03 +0000 (+0800) Subject: Pman.Dialog.XtupleVendorEdit.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=8d1a8386a930f773f5bf32640be5d013f4cece94;p=Pman.Xtuple Pman.Dialog.XtupleVendorEdit.bjs Pman.Dialog.XtupleVendorEdit.js --- diff --git a/Pman.Dialog.XtupleVendorEdit.bjs b/Pman.Dialog.XtupleVendorEdit.bjs index cfec53e7..21f99662 100644 --- a/Pman.Dialog.XtupleVendorEdit.bjs +++ b/Pman.Dialog.XtupleVendorEdit.bjs @@ -685,7 +685,7 @@ }, { "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", diff --git a/Pman.Dialog.XtupleVendorEdit.js b/Pman.Dialog.XtupleVendorEdit.js index 332a12a0..797cec00 100644 --- a/Pman.Dialog.XtupleVendorEdit.js +++ b/Pman.Dialog.XtupleVendorEdit.js @@ -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');