diff --git a/app/assets/javascripts/cookies.js b/app/assets/javascripts/cookies.js index d6d7efba..efd9d69f 100644 --- a/app/assets/javascripts/cookies.js +++ b/app/assets/javascripts/cookies.js @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License along // with BigBlueButton; if not, see . -$(document).ready(function() { +$(document).on('turbolinks:load', function(){ $("#cookies-agree-button").click(function() { //create a cookie that lasts 1 year var cookieDate = new Date();