app/assets/javascripts/activeadmin-selleo-cms/custom.js in activeadmin-selleo-cms-0.0.14 vs app/assets/javascripts/activeadmin-selleo-cms/custom.js in activeadmin-selleo-cms-0.0.16
- old
+ new
@@ -16,10 +16,10 @@
return str;
};
function delete_asset(page_id, asset_id) {
$.ajax({
- url: '/admin/pages/' + page_id + '/assets/' + asset_id + '.js',
+ url: '/admin/assets/' + asset_id + '.js',
type: 'DELETE'
}).success(function(){
$('[data-attachment-id="' + asset_id + '"]').remove();
}).error(function(){
alert('Could not delete attachment');
\ No newline at end of file