[Vtigercrm-commits] [vtiger-commits] r3924 - in /vtigercrm/trunk/modules: Products/Product.js SalesOrder/SalesOrder.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 24 07:44:09 EST 2006
Author: saraj
Date: Fri Feb 24 05:44:04 2006
New Revision: 3924
Log:
* func set_return_specific changed to generic
Modified:
vtigercrm/trunk/modules/Products/Product.js
vtigercrm/trunk/modules/SalesOrder/SalesOrder.js
Modified: vtigercrm/trunk/modules/Products/Product.js
==============================================================================
--- vtigercrm/trunk/modules/Products/Product.js (original)
+++ vtigercrm/trunk/modules/Products/Product.js Fri Feb 24 05:44:04 2006
@@ -124,8 +124,13 @@
window.opener.document.EditView.parent_id.value = product_id;
}
function set_return_specific(product_id, product_name) {
- window.opener.document.EditView.product_name.value = product_name;
- window.opener.document.EditView.product_id.value = product_id;
+ //getOpenerObj used for DetailView
+ var fldName = getOpenerObj("product_name");
+ var fldId = getOpenerObj("product_id");
+ fldName.value = product_name;
+ fldId.value = product_id;
+ //window.opener.document.EditView.product_name.value = product_name;
+ //window.opener.document.EditView.product_id.value = product_id;
}
function set_return_formname_specific(formname,product_id, product_name) {
Modified: vtigercrm/trunk/modules/SalesOrder/SalesOrder.js
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/SalesOrder.js (original)
+++ vtigercrm/trunk/modules/SalesOrder/SalesOrder.js Fri Feb 24 05:44:04 2006
@@ -307,8 +307,14 @@
window.opener.document.EditView.parent_id.value = product_id;
}
function set_return_specific(product_id, product_name) {
- window.opener.document.EditView.salesorder_name.value = product_name;
- window.opener.document.EditView.salesorder_id.value = product_id;
+
+ //getOpenerObj used for DetailView
+ var fldName = getOpenerObj("salesorder_name");
+ var fldId = getOpenerObj("salesorder_id");
+ fldName.value = product_name;
+ fldId.value = product_id;
+ //window.opener.document.EditView.salesorder_name.value = product_name;
+ //window.opener.document.EditView.salesorder_id.value = product_id;
window.opener.document.EditView.action.value = 'EditView';
window.opener.document.EditView.convertmode.value = 'update_so_val';
window.opener.document.EditView.submit();
More information about the vtigercrm-commits
mailing list