[Vtigercrm-commits] [vtiger-commits] r3920 - in /vtigercrm/trunk/modules: Invoice/Invoice.js PurchaseOrder/PurchaseOrder.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 24 07:23:18 EST 2006
Author: saraj
Date: Fri Feb 24 05:23:13 2006
New Revision: 3920
Log:
* func set_return_specific changed to generic
Modified:
vtigercrm/trunk/modules/Invoice/Invoice.js
vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js
Modified: vtigercrm/trunk/modules/Invoice/Invoice.js
==============================================================================
--- vtigercrm/trunk/modules/Invoice/Invoice.js (original)
+++ vtigercrm/trunk/modules/Invoice/Invoice.js Fri Feb 24 05:23:13 2006
@@ -337,8 +337,14 @@
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/PurchaseOrder/PurchaseOrder.js
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/PurchaseOrder.js Fri Feb 24 05:23:13 2006
@@ -301,8 +301,14 @@
window.opener.document.EditView.parent_id.value = product_id;
}
function set_return_specific(product_id, product_name) {
- window.opener.document.EditView.purchaseorder_name.value = product_name;
- window.opener.document.EditView.purchaseorder_id.value = product_id;
+
+ //getOpenerObj used for DetailView
+ var fldName = getOpenerObj("purchaseorder_name");
+ var fldId = getOpenerObj("purchaseorder_id");
+ fldName.value = product_name;
+ fldId.value = product_id;
+ //window.opener.document.EditView.purchaseorder_name.value = product_name;
+ //window.opener.document.EditView.purchaseorder_id.value = product_id;
}
function set_return_formname_specific(formname, product_id, product_name) {
window.opener.document.EditView1.purchaseorder_name.value = product_name;
More information about the vtigercrm-commits
mailing list