[Vtigercrm-commits] [vtiger development] #6342: missing function "encodeURIComponent" in JavaScript causes Problem
vtiger development
vtiger-tickets at trac.vtiger.com
Fri Oct 9 12:49:08 EDT 2009
#6342: missing function "encodeURIComponent" in JavaScript causes Problem
------------------------+---------------------------------------------------
Reporter: paproth | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 5.2.0
Component: vtigercrm | Version: 5.1.0
Keywords: |
------------------------+---------------------------------------------------
A missing function call of "encodeURIComponent" in Javascript-file
include/jsgeneral.js on line 3621 in Function "startCall" causes Problems
with "+" character in phone-number.
The following should fix the problem:
//var ASTERISK_DIV_TIMEOUT = 6000;
new Ajax.Request(
'index.php',
{ queue: {position: 'end', scope: 'command'},
method: 'post',
postBody:
'action=PBXManagerAjax&mode=ajax&file=StartCall&ajax=true&module=PBXManager&number='+'''encodeURIComponent'''(number)+'&recordid='+'''encodeURIComponent'''(recordid),
onComplete: function(response) {
if(response.responseText == ''){
//successfully called
}else{
alert(response.responseText);
}
}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6342>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list