mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX "console not defined" error in IE in en_US.js, check typeof(console) is not undefined before calling console.error()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@68890 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1d584cee73
commit
f0e661a253
@ -1,5 +1,5 @@
|
||||
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
|
||||
console.error('Class ss.i18n not defined');
|
||||
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
|
||||
} else {
|
||||
ss.i18n.addDictionary('en_US', {
|
||||
'VALIDATOR.FIELDREQUIRED': 'Please fill out "%s", it is required.',
|
||||
|
Loading…
x
Reference in New Issue
Block a user