Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete button is not clickable #1237

Open
lamtranb opened this issue May 24, 2024 · 3 comments
Open

Delete button is not clickable #1237

lamtranb opened this issue May 24, 2024 · 3 comments

Comments

@lamtranb
Copy link

lamtranb commented May 24, 2024

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: 423f1ad (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
Copy link

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

@ivliev
Copy link

ivliev commented Sep 25, 2024

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);
}

@SamuelMereau
Copy link

I've identified the same issue occurring on my system as well.
Confirming the fix noted above by @ivliev does resolve this. Could this fix please be considered for merging?
Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants