Added window.console IE9 workaround.

This commit is contained in:
Alex Tselegidis 2016-01-01 21:57:44 +01:00
parent 648e82840f
commit 0cb586c6fe
2 changed files with 8 additions and 0 deletions

View file

@ -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');

View file

@ -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).