UniSharp / laravel-filemanager

Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
https://unisharp.github.io/laravel-filemanager/
MIT License
2.09k stars 721 forks source link

Delete button is not clickable #1237

Open lamtranb opened 5 months ago

lamtranb commented 5 months ago

Expected Behavior

I can delete the image as normal.

Actual Behavior

No ajax call,

Steps to Reproduce the Problem

  1. Click on an Image
  2. Click delete icon (trash)

Specifications

I checked with the commit: 423f1ada88301a45040b1025f2c3e96f787c5889 (In my production server) and everything is working fine. But when I use dev-master, or 2.9.0 then it did not work. Please note that other buttons are working fine, except delete button.

gbowen81 commented 4 months ago

I'm experiencing the same issue with version 2.9 - all other buttons are working fine, just not the delete button.

ivliev commented 1 month ago

The function "confirm" in script.js should be adapted accordingly: function confirm(body, callback) { $('#notify').find('.btn-primary').toggle(callback !== undefined); $('#notify').find('.btn-primary').click(callback); $('#notify').modal('show').find('.modal-body').html(body); }