diff --git a/app/assets/javascripts/landing.js b/app/assets/javascripts/landing.js index b9fb8843..acd58be9 100644 --- a/app/assets/javascripts/landing.js +++ b/app/assets/javascripts/landing.js @@ -108,21 +108,6 @@ }; $(document).tooltip(options); - // enable popovers - var options = { - selector: '.has-popover', - container: 'body', - html: true, - trigger: 'focus', - title: function() { - return I18n.are_you_sure; - }, - content: function() { - return $(".delete-popover-body").html(); - } - }; - $('#recordings').popover(options); - // focus name input or join button if ($('.meeting-user-name').is(':visible')) { $('.meeting-user-name').focus(); diff --git a/app/assets/javascripts/recordings.coffee b/app/assets/javascripts/recordings.coffee index 03b09085..08c559f6 100644 --- a/app/assets/javascripts/recordings.coffee +++ b/app/assets/javascripts/recordings.coffee @@ -81,11 +81,22 @@ class @Recordings }) options = { selector: '.delete-tooltip', - container: 'body', placement: 'bottom', title: I18n.delete_recording }; - $('#recordings').tooltip(options); + $('#recordings').tooltip(options) + + # enable popovers + options = { + selector: '.has-popover', + html: true, + trigger: 'focus', + title: -> + return I18n.are_you_sure; + content: -> + return $(".delete-popover-body").html() + } + $('#recordings').popover(options) # Gets the current instance or creates a new one @getInstance: ->