From 0cb586c6fea94635e14b1b3249eea5ecb4462897 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 1 Jan 2016 21:57:44 +0100 Subject: [PATCH] Added window.console IE9 workaround. --- src/assets/js/backend.js | 4 ++++ src/assets/js/frontend_book.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/assets/js/backend.js b/src/assets/js/backend.js index a9817373..2bd7a9b7 100644 --- a/src/assets/js/backend.js +++ b/src/assets/js/backend.js @@ -13,6 +13,10 @@ * Main javascript code for the backend of Easy!Appointments. */ $(document).ready(function() { + if (window.console === undefined) { + window.console = function() {} // IE compatibility + } + $(window).resize(function() { Backend.placeFooterToBottom(); }).trigger('resize'); diff --git a/src/assets/js/frontend_book.js b/src/assets/js/frontend_book.js index 26f772a5..f9bea6fe 100644 --- a/src/assets/js/frontend_book.js +++ b/src/assets/js/frontend_book.js @@ -41,6 +41,10 @@ var FrontendBook = { manageMode = false; // Default Value } + if (window.console === undefined) { + window.console = function() {} // IE compatibility + } + FrontendBook.manageMode = manageMode; // Initialize page's components (tooltips, datepickers etc).