[Vtigercrm-commits] [vtiger-commits] r9412 - /vtigercrm/trunk/modules/Products/Product.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Sep 11 10:13:59 EDT 2006
Author: jerrydgeorge
Date: Mon Sep 11 08:13:50 2006
New Revision: 9412
Log:
Issue in Ajax edit while changing Product Name from HelpDesk DetailView has been fixed --Jeri.Fixes #2093,2163
Modified:
vtigercrm/trunk/modules/Products/Product.js
Modified: vtigercrm/trunk/modules/Products/Product.js
==============================================================================
--- vtigercrm/trunk/modules/Products/Product.js (original)
+++ vtigercrm/trunk/modules/Products/Product.js Mon Sep 11 08:13:50 2006
@@ -45,14 +45,19 @@
}
function set_return_specific(product_id, product_name) {
//getOpenerObj used for DetailView
+
if(document.getElementById('from_link').value != '')
{
var fldName = window.opener.document.QcEditView.product_name;
var fldId = window.opener.document.QcEditView.product_id;
+ }else if(typeof(window.opener.document.DetailView) != 'undefined')
+ {
+ var fldName = window.opener.document.DetailView.product_name;
+ var fldId = window.opener.document.DetailView.product_id;
}else
- {
- var fldName = window.opener.document.EditView.product_name;
- var fldId = window.opener.document.EditView.product_id;
+ {
+ var fldName = window.opener.document.EditView.product_name;
+ var fldId = window.opener.document.EditView.product_id;
}
fldName.value = product_name;
fldId.value = product_id;
More information about the vtigercrm-commits
mailing list