[Vtigercrm-commits] [vtiger-commits] r10181 - /vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Feb 13 02:57:23 EST 2007
Author: saraj
Date: Tue Feb 13 00:57:20 2007
New Revision: 10181
Log:
changes made to give link in detailview ajax edit of description --Minnie
Modified:
vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
Modified: vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/dtlviewajax.js (original)
+++ vtigercrm/branches/5.0.3/include/js/dtlviewajax.js Tue Feb 13 00:57:20 2007
@@ -332,7 +332,15 @@
* EditViewUtils.php and CRMEntity.php)!!
*/
getObj(dtlView).innerHTML = r.join(", ");
- }else
+ }else if(uitype == '19'){
+ var desc = tagValue.replace(/(^|[\n ])([\w]+?:\/\/.*?[^ \"\n\r\t<]*)/g, "$1<a href=\"$2\" target=\"_blank\">$2</a>");
+ desc = desc.replace(/(^|[\n ])((www|ftp)\.[\w\-]+\.[\w\-.\~]+(?:\/[^ \"\t\n\r<]*)?)/g, "$1<a href=\"http://$2\" target=\"_blank\">$2</a>");
+ desc = desc.replace(/(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)/i, "$1<a href=\"mailto:$2@$3\">$2@$3</a>");
+ desc = desc.replace(/,\"|\.\"|\)\"|\)\.\"|\.\)\"/, "\"");
+ desc = desc.replace(/[\n\r]+/g, "<br> ");
+ getObj(dtlView).innerHTML = desc;
+ }
+ else
{
getObj(dtlView).innerHTML = tagValue.replace(/[\n\r]+/g, "<br> ");
}
More information about the vtigercrm-commits
mailing list