From 44a7aa6adbace02a74f13ba38e94185c28ce2028 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 12 Jun 2014 17:33:28 +0000 Subject: [PATCH] JS/IE8: deliver legacy jQuery for IE8 This patch makes IcingaWeb deliver a legacy jQuery version for IE8 as it is no longer supported in jQuery 2.x. JS for IE8 will not be delivered minified to ease troubleshooting on that buggy platform. fixes #5866 refs #6417 --- application/layouts/scripts/layout.phtml | 7 +++++++ library/Icinga/Application/webrouter.php | 5 +++++ library/Icinga/Web/JavaScript.php | 12 +++++++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index 602a0f0c7..71b233610 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -10,6 +10,8 @@ if (array_key_exists('_dev', $_GET)) { $cssfile = 'css/icinga.min.css'; } +$ie8jsfile = 'js/icinga.ie8.js'; + $isIframe = isset($_GET['_render']) && $_GET['_render'] === 'iframe'; $iframeClass = $isIframe ? ' iframe' : ''; @@ -47,7 +49,12 @@ $iframeClass = $isIframe ? ' iframe' : '';
render('body.phtml') ?>
+ + +