Skip to content

Commit

Permalink
Merge pull request #155 from zachberry/issue/154-no-flash-overlay-stu…
Browse files Browse the repository at this point in the history
…ck-on-page

Removes the No-Flash Installed overlay when page changes
  • Loading branch information
iturgeon authored Jan 16, 2021
2 parents 76afb17 + 193cac6 commit 0f94b21
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/js/viewer/obo.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,12 @@ obo.view = function()

var buildPage = function(section, index)
{
// @TODO captivateSwitch
// $('#swap-cap').hide();

// Remove any No-Flash installed overlays
while($('#swf-alt-text').length > 0) {
var $figure = $('#swf-alt-text').parents('figure.media-item')
if($figure.length) $figure.remove()
}

switch(section)
{
case 'overview':
Expand Down

0 comments on commit 0f94b21

Please sign in to comment.