From 445e6ad16e425ca96b500c0b518cf111b2f0c8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 12 Sep 2018 14:35:27 +0200 Subject: [PATCH] [28484] Add some polyfills to make older browsers function just enough https://community.openproject.com/wp/28484 --- .../javascripts/specific/main_menu.js.erb | 2 +- frontend/src/polyfills.ts | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/assets/javascripts/specific/main_menu.js.erb b/app/assets/javascripts/specific/main_menu.js.erb index a03b6ff7c5..3d5c97f552 100644 --- a/app/assets/javascripts/specific/main_menu.js.erb +++ b/app/assets/javascripts/specific/main_menu.js.erb @@ -107,7 +107,7 @@ jQuery(document).ready(function($) { var parentURL = $(child).parents('li').find('.main-item-wrapper > a')[0].href; var header = $(''); var upLink = $(''); - var parentLink = $(`${title}`); + var parentLink = $('' + title + ''); upLink.attr('title', I18n.t('js.label_up')); upLink.click(navigateUp); header.append(upLink); diff --git a/frontend/src/polyfills.ts b/frontend/src/polyfills.ts index 17f6876ba5..c13b5171da 100644 --- a/frontend/src/polyfills.ts +++ b/frontend/src/polyfills.ts @@ -19,20 +19,20 @@ */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; +import 'core-js/es6/symbol'; +import 'core-js/es6/object'; +import 'core-js/es6/function'; +import 'core-js/es6/parse-int'; +import 'core-js/es6/parse-float'; +import 'core-js/es6/number'; +import 'core-js/es6/math'; +import 'core-js/es6/string'; +import 'core-js/es6/date'; +import 'core-js/es6/array'; +import 'core-js/es6/regexp'; +import 'core-js/es6/map'; +import 'core-js/es6/weak-map'; +import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`.