[Vtigercrm-commits] [vtiger-commits] r3923 - /vtigercrm/trunk/modules/PriceBooks/PriceBook.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 24 07:38:36 EST 2006


Author: saraj
Date: Fri Feb 24 05:38:31 2006
New Revision: 3923

Log:
* func set_return_specific changed to generic

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 Fri Feb 24 05:38:31 2006
@@ -223,8 +223,13 @@
 
 function set_return_specific(vendor_id, vendor_name) 
 {
-        window.opener.document.EditView.vendor_name.value = vendor_name;
-        window.opener.document.EditView.vendor_id.value = vendor_id;
+        //getOpenerObj used for DetailView 
+        var fldName = getOpenerObj("vendor_name");
+        var fldId = getOpenerObj("vendor_id");
+        fldName.value = vendor_name;
+        fldId.value = vendor_id;
+	//window.opener.document.EditView.vendor_name.value = vendor_name;
+        //window.opener.document.EditView.vendor_id.value = vendor_id;
 }
 function set_return_inventory_pb(listprice, fldname) 
 {





More information about the vtigercrm-commits mailing list