From 7289e80e92bc44a2cc3840b0e1af3d207f3cd9ed Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 8 Aug 2018 11:12:57 +0200 Subject: [PATCH] Wait till common translations are loaded then ask for IE browser compatibility --- api/js/framework/fw_desktop.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/api/js/framework/fw_desktop.js b/api/js/framework/fw_desktop.js index 35acbfb11e..23fcd79472 100644 --- a/api/js/framework/fw_desktop.js +++ b/api/js/framework/fw_desktop.js @@ -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'); + } + }); }, /**