Browse Source

add missing break statements

pull/42/head
Daniel Naber 10 years ago
parent
commit
592e6bac98
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/js/pannellum.js

+ 5
- 1
src/js/pannellum.js View File

@@ -866,6 +866,7 @@ function processOptions() {
// Show loading box
document.getElementById('load_box').style.display = 'inline';
}
//fallthrough
case 'popoutautoload':
// Hide load button
document.getElementById('load_button').style.display = 'none';
@@ -887,7 +888,8 @@ function processOptions() {
case 'header':
// Add contents to header
document.getElementsByTagName('head')[0].innerHTML += config[key];
break;

case 'showZoomCtrl':
if (config[key]) {
// Show zoom controls
@@ -896,6 +898,7 @@ function processOptions() {
// Hide zoom controls
document.getElementById('zoomcontrols').style.display = 'none';
}
break;
case 'showFullscreenCtrl':
if (config[key]) {
@@ -905,6 +908,7 @@ function processOptions() {
// Hide fullscreen control
document.getElementById('fullwindowtoggle_button').style.display = 'none';
}
break;
}
}
}


Loading…
Cancel
Save