Skip to content

Commit

Permalink
Merge pull request #1481 from sul-dlss/tooltip
Browse files Browse the repository at this point in the history
Remove orphan tooltip code
  • Loading branch information
thatbudakguy committed Mar 22, 2023
2 parents b32677a + 026c0a6 commit b6a6f2a
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 585 deletions.
7 changes: 0 additions & 7 deletions app/assets/javascripts/modules/common_viewer_behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,13 @@

return {
initializeViewer: function(callback) {
var _this = this;
this.showViewer();
$.when(viewerShown).done(function() {
_this.initializeTooltip();
if (typeof callback !== 'undefined') {
callback();
}
});
},
initializeTooltip: function() {
$("[data-sul-embed-tooltip='true']").each(function() {
$(this).tooltip();
});
},
showViewer: function() {
$("#sul-embed-object").show(function() {
viewerShown.resolve();
Expand Down
Loading

0 comments on commit b6a6f2a

Please sign in to comment.