app/assets/javascripts/cm_admin/scaffolds.js in cm-admin-1.1.9 vs app/assets/javascripts/cm_admin/scaffolds.js in cm-admin-1.2.0

- old
+ new

@@ -41,6 +41,12 @@ $(document).on('click', '.menu-item', function(e) { $('.profile-popup').toggleClass('hidden'); }); +$(document).on('click', '.destroy-attachment', function(e) { + var ar_id = $(this).data('ar-id') + $(this).addClass('hidden') + $(this).append('<input type="text" name="attachment_destroy_ids[]" value="' + ar_id + '"/>') +}) + window.addEventListener('popstate', e => window.location.reload() ); \ No newline at end of file