[Vtigercrm-commits] [vtiger-commits] r10193 - /vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 16 08:53:30 EST 2007
Author: saraj
Date: Fri Feb 16 06:53:27 2007
New Revision: 10193
Log:
fix for #2867 --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 Fri Feb 16 06:53:27 2007
@@ -192,7 +192,7 @@
var data = "file=DetailViewAjax&module=" + module + "&action=" + module + "Ajax&record=" + crmId+"&recordid=" + crmId ;
- data = data + "&fldName=" + fieldName + "&fieldValue=" + escape(tagValue) + "&ajxaction=DETAILVIEW"+groupurl;
+ data = data + "&fldName=" + fieldName + "&fieldValue=" + escapeAll(tagValue) + "&ajxaction=DETAILVIEW"+groupurl;
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
@@ -355,6 +355,13 @@
showHide(dtlView,editArea); //show,hide
itsonview=false;
}
+
+// Replace the % sign with %25 to make sure the AJAX url is going wel.
+function escapeAll(tagValue)
+{
+ return escape(tagValue.replace(/%/g, '%25'));
+}
+
function SaveTag(tagfield,crmId,module)
{
var tagValue = $(tagfield).value;
More information about the vtigercrm-commits
mailing list