app/assets/javascripts/adminpanel/imagesloaded.js in adminpanel-1.2.12 vs app/assets/javascripts/adminpanel/imagesloaded.js in adminpanel-2.0.0
- old
+ new
@@ -1,6 +1,6 @@
-$(document).ready(function(){
+var ready = function(){
$("#gallery-container").imagesLoaded(function(){
$('#gallery-container').masonry({
itemSelector: '.gallery-item',
isAnimated:true,
animationOptions: {
@@ -8,6 +8,9 @@
easing:'linear',
queue :false
}
});
});
-});
\ No newline at end of file
+}
+
+$(document).ready(ready);
+$(document).on('page:load', ready);