forked from science-ation/science-ation
Fix the JSON "invalid label" problem for firefox
This commit is contained in:
parent
03d5e23496
commit
a1208d205a
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user