Skip to content

Commit

Permalink
fix(uploader): disable ajax removal
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Apr 17, 2020
1 parent e5afc21 commit 0a6b469
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion public/js/all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/css/app.css": "/css/app.css?id=84c9515032f958dd16e4",
"/js/all.js": "/js/all.js?id=34709c61a4505a9416fa",
"/js/all.js": "/js/all.js?id=cb4027f62ceb2455025e",
"/css/all.css": "/css/all.css?id=4b3a003417c65cef7fc1",
"/semantic/semantic.min.css": "/semantic/semantic.min.css?id=2a6f167e594f0513e5b8"
}
24 changes: 12 additions & 12 deletions resources/js/init/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,18 +319,18 @@ $(function () {
extensions: extensions,
addMore: true,
upload: upload,
onRemove: function(item) {
if ($(elm).data('media-url')) {
$.post($(elm).data('media-url'), {
_token: $(elm).data('token'),
_action: 'delete',
file: item.file,
id: item.data.id
});
}

return true;
},
// onRemove: function(item) {
// if ($(elm).data('media-url')) {
// $.post($(elm).data('media-url'), {
// _token: $(elm).data('token'),
// _action: 'delete',
// file: item.file,
// id: item.data.id
// });
// }
//
// return true;
// },
changeInput: '<div class="fileuploader-input">' +
'<div class="fileuploader-input-inner">' +
'<div><span>${captions.browse}</span></div>' +
Expand Down

0 comments on commit 0a6b469

Please sign in to comment.