Skip to content

Commit 2b389b3

Browse files
fixed bug when toggling timebox, fix #43
1 parent 4d4ae11 commit 2b389b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

js/app.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,11 @@ $(window).ready(function() {
565565
break;
566566
case "opt_hide_timebox":
567567
var elm = $("#timebox");
568-
if(on) { elm.attr('class','').hide(); }
569-
else { elm.attr('class','').addClass('present').show(); }
568+
if(on) {
569+
elm.removeClass('past').removeClass('present').hide();
570+
} else {
571+
elm.addClass('present').show();
572+
}
570573
break;
571574
case "opt_layers_clouds":
572575
if(on) { layers_clouds.setMap(map); }

0 commit comments

Comments
 (0)