[Vtigercrm-commits] [vtiger-commits] r7251 - /vtigercrm/trunk/modules/PriceBooks/PriceBook.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Jun 19 04:01:08 EDT 2006
Author: saraj
Date: Mon Jun 19 02:01:04 2006
New Revision: 7251
Log:
js function deletePriceBookProductRel has been included
Modified:
vtigercrm/trunk/modules/PriceBooks/PriceBook.js
Modified: vtigercrm/trunk/modules/PriceBooks/PriceBook.js
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/PriceBook.js (original)
+++ vtigercrm/trunk/modules/PriceBooks/PriceBook.js Mon Jun 19 02:01:04 2006
@@ -150,4 +150,19 @@
window.opener.document.EditView.elements[fldname].focus();
}
+function deletePriceBookProductRel(id,pbid)
+{
+ $("status").style.display="inline";
+ new Ajax.Request(
+ 'index.php',
+ {queue: {position: 'end', scope: 'command'},
+ method: 'post',
+ postBody: 'module=Products&action=ProductsAjax&file=DeletePriceBookProductRel&ajax=true&return_action=CallRelatedList&return_module=PriceBooks&record='+id+'&pricebook_id='+pbid+'&return_id='+pbid,
+ onComplete: function(response) {
+ $("status").style.display="none";
+ $("RLContents").innerHTML= response.responseText;
+ }
+ }
+ );
+}
More information about the vtigercrm-commits
mailing list