Skip to content

Commit

Permalink
fix for calendar js if there is no Modalbox
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Jan 18, 2016
1 parent 1f29329 commit d241700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frameworks/Ajax/Ajax/WebServerResources/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function calendar_prev_year() {

function calendar_show() {
calendar.element.style.display = '';
if (Modalbox && Modalbox.MBoverlay) {
if (typeof Modalbox !== 'undefined' && Modalbox.MBoverlay) {
Modalbox.MBoverlay.observe("click", calendar_hide);
}
}
Expand All @@ -313,7 +313,7 @@ function calendar_hide() {
{
$('ieShim').style.display = 'none';
}
if (Modalbox && Modalbox.MBoverlay) {
if (typeof Modalbox !== 'undefined' && Modalbox.MBoverlay) {
Modalbox.MBoverlay.stopObserving("click", calendar_hide);
}
}
Expand Down

0 comments on commit d241700

Please sign in to comment.