app/assets/upload_image.js in upload-image-0.1.1 vs app/assets/upload_image.js in upload-image-0.1.2
- old
+ new
@@ -1,7 +1,7 @@
//= require ./cropper.min
-$(document).ready(function() {
+$(document).on('turbolinks:load', function() {
$('.b9bf30-upload-image').each(function() {
// 'upload_elem' is the outer container.
var upload_elem = $(this)
// 'tag' includes <object_name>__<attribute_name>.
var tag = upload_elem.attr('id').replace('b9bf30-upload-image-', '')