Fix the JSON "invalid label" problem for firefox

This commit is contained in:
james 2007-12-10 21:47:05 +00:00
parent 03d5e23496
commit a1208d205a

View File

@ -229,7 +229,8 @@
document.addreport.stock.style.display='';
document.getElementById('reporttypecustom').style.display='none';
document.getElementById('reportstockcustom').style.display='none';
var obj=eval(http.responseText);
var obj=eval('('+http.responseText+')');
if(obj['option']['type']) {
for(i=0;i<document.addreport.type.options.length;i++) {
if(document.addreport.type.options[i].value==obj['option']['type'])
@ -263,7 +264,7 @@
}
}
catch(e) {
alert('caught error'+e);
alert('caught error: '+e);
}
}
</script>