[Vtigercrm-commits] [vtiger-commits] r4344 - /vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 11:10:28 EST 2006


Author: saraj
Date: Mon Mar 20 09:10:24 2006
New Revision: 4344

Log:
Added function for popup

Modified:
    vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js

Modified: vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js Mon Mar 20 09:10:24 2006
@@ -11,6 +11,13 @@
 function settotalnoofrows() {
 	document.EditView.totalProductCount.value = rowCnt;	
 }
+
+function productPickList(currObj) {
+	var trObj=currObj.parentNode.parentNode
+	var rowId=parseInt(trObj.id.substr(trObj.id.indexOf("w")+1,trObj.id.length))
+	window.open("index.php?module=Products&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=inventory_prod_po&curr_row="+rowId,"productWin","width=600,height=400,resizable=1,scrollbars=1,top=150,left=200");
+}
+
 function priceBookPickList(currObj) {
 	var trObj=currObj.parentNode.parentNode
 	var rowId=parseInt(trObj.id.substr(trObj.id.indexOf("w")+1,trObj.id.length))





More information about the vtigercrm-commits mailing list