Skip to content

Commit

Permalink
Added window.console IE9 workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jan 1, 2016
1 parent 648e828 commit 0cb586c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/assets/js/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 4 additions & 0 deletions src/assets/js/frontend_book.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 0cb586c

Please sign in to comment.