Wait till common translations are loaded then ask for IE browser compatibility

This commit is contained in:
Hadi Nategh 2018-08-08 11:12:57 +02:00
parent 931100c2ac
commit 7289e80e92

View File

@ -65,12 +65,6 @@
opacity: 0.7,
axis: 'y'
});
// warn user about using IE not compatibilities
if (navigator && navigator.userAgent.match(/Trident|msie/ig))
{
egw.message(egw.lang('Browser %1 %2 is not recommended. You may experience issues and not working features. Please use the latest version of Chrome, Firefox or Edge. Thank You!', 'IE',''), 'info', 'browser:ie:warning');
}
},
/**
@ -216,6 +210,16 @@
}
_sideboxSizeCallback(_sideboxStartSize);
// warn user about using IE not compatibilities
// we need to wait until common translations are loaded
egw.langRequireApp(window, 'common', function()
{
if (navigator && navigator.userAgent.match(/Trident|msie/ig))
{
egw.message(egw.lang('Browser %1 %2 is not recommended. You may experience issues and not working features. Please use the latest version of Chrome, Firefox or Edge. Thank You!', 'IE',''), 'info', 'browser:ie:warning');
}
});
},
/**