app/assets/javascripts/adminpanel/realm.js in adminpanel-3.2.1 vs app/assets/javascripts/adminpanel/realm.js in adminpanel-3.3.0

- old
+ new

@@ -1,6 +1,6 @@ -var ready = function(){ +$(document).on('turbolinks:load', function(){ // toggle arrow on menu items // $('.accordion-heading .accordion-toggle').click(function(){ // $('.accordion-heading .accordion-toggle').not($(this)[0], '.accordion-heading .accordion-toggle.collapse').addClass('collapsed'); // }); @@ -54,14 +54,10 @@ // } // }); $('.datepicker-basic').datepicker(); -}; - -$(document).ready(ready); -$(document).on('page:load', ready); - +}); //----- Side menu functions ----- // slide menu out of view // function sidemenu_close(){