Skip to content
Snippets Groups Projects
Commit ccd6a498 authored by colemanw's avatar colemanw
Browse files

Merge pull request #1652 from vivekarora/CRM-13368

CRM-13368 - Fixed js code to work same in all browsers
parents d626b7cf 05adb6ad
Branches
Tags
No related merge requests found
......@@ -185,10 +185,10 @@
var postUrl = "{/literal}{crmURL p='civicrm/ajax/relationshipContactTypeList' h=0}{literal}";
cj.post( postUrl, { relType: relType },
function ( response ) {
cj( selectID ).get(0).add(new Option('{/literal}{ts escape="js"}- create new contact -{/ts}{literal}', ''), document.all ? i : null);
cj( selectID ).get(0).add(new Option('{/literal}{ts escape="js"}- create new contact -{/ts}{literal}', ''));
response = eval( response );
for (i = 0; i < response.length; i++) {
cj( selectID ).get(0).add(new Option(response[i].name, response[i].value), document.all ? i : null);
cj( selectID ).get(0).add(new Option(response[i].name, response[i].value));
}
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment