[Vtigercrm-commits] [vtiger-commits] r3921 - in /vtigercrm/trunk/modules: Quotes/Quote.js Vendors/Vendor.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 24 07:31:42 EST 2006
Author: saraj
Date: Fri Feb 24 05:31:36 2006
New Revision: 3921
Log:
* func set_return_specific changed to generic
Modified:
vtigercrm/trunk/modules/Quotes/Quote.js
vtigercrm/trunk/modules/Vendors/Vendor.js
Modified: vtigercrm/trunk/modules/Quotes/Quote.js
==============================================================================
--- vtigercrm/trunk/modules/Quotes/Quote.js (original)
+++ vtigercrm/trunk/modules/Quotes/Quote.js Fri Feb 24 05:31:36 2006
@@ -306,8 +306,14 @@
window.opener.document.EditView.parent_id.value = product_id;
}
function set_return_specific(product_id, product_name) {
- window.opener.document.EditView.quote_name.value = product_name;
- window.opener.document.EditView.quote_id.value = product_id;
+
+ //getOpenerObj used for DetailView
+ var fldName = getOpenerObj("quote_name");
+ var fldId = getOpenerObj("quote_id");
+ fldName.value = product_name;
+ fldId.value = product_id;
+ //window.opener.document.EditView.quote_name.value = product_name;
+ //window.opener.document.EditView.quote_id.value = product_id;
window.opener.document.EditView.action.value = 'EditView';
window.opener.document.EditView.convertmode.value = 'update_quote_val';
window.opener.document.EditView.submit();
Modified: vtigercrm/trunk/modules/Vendors/Vendor.js
==============================================================================
--- vtigercrm/trunk/modules/Vendors/Vendor.js (original)
+++ vtigercrm/trunk/modules/Vendors/Vendor.js Fri Feb 24 05:31:36 2006
@@ -115,8 +115,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_address(vendor_id, vendor_name, street, city, state, code, country,pobox )
More information about the vtigercrm-commits
mailing list