app/views/alchemy/admin/pictures/assign.js.erb in alchemy_cms-7.0.15 vs app/views/alchemy/admin/pictures/assign.js.erb in alchemy_cms-7.1.0.pre.b1
- old
+ new
@@ -3,8 +3,8 @@
$("#assignable_<%= @assignable_id %> a").attr("href", "#").off("click")
$form_field.val("<%= @assignable_id %>")
$form_field.attr("data-image-file-width", <%= @picture.image_file_width %>)
$form_field.attr("data-image-file-height", <%= @picture.image_file_height %>)
Alchemy.closeCurrentDialog(function() {
- Alchemy.setElementDirty($form_field.closest(".element-editor"))
+ $form_field[0].closest("alchemy-element-editor").setDirty()
})
})()