data-confirm-modal icon indicating copy to clipboard operation
data-confirm-modal copied to clipboard

Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.

Results 13 data-confirm-modal issues
Sort by recently updated
recently updated
newest added

Made use of JQuery one() method to make sure only one event is triggered on click of confirm button. Reference - https://api.jquery.com/one/

Hi, has anyone already started converting [this](https://github.com/ifad/data-confirm-modal/blob/master/vendor/assets/javascripts/data-confirm-modal.js) to Vanilla JS for support for the next Bootstrap 5?

enhancement
help wanted

I've had an app running for a long time, but just started getting this error out of the blue ![image](https://user-images.githubusercontent.com/5910005/41571562-00c23d80-7331-11e8-888b-df570f01fec5.png) At first, it was breaking functionality in my app. I...

Two windows are displayed when you click the link that has a data-confirm attribute. Please see below. Versions: - Internet Explorer: 11 - Ruby: 2.6.5 - Rails: 5.2.4 - data-confirm-modal:...

bug

JSFiddle replicating issue: https://jsfiddle.net/zhuxdyfb/ In the fiddle, no matter what you put in `data-modal-close-content`, it doesn't change the default `×` content. Am I using it wrong? Implementation is based on...

`options.verifyLabel` should create a `` tag referencing the ``. The input will need also need a `id` attribute as well. ``` var verification = $('', {"type": 'text', "id": "confirm", "class":...

If the contents of the `data-confirm` attribute contain user-generated content, this library opens up the app to possible XSS vulnerabilities, which makes sense given [the use of the `html()` function](https://github.com/ifad/data-confirm-modal/blob/52b12473bb110e2437b06e262b0435741ceac75c/vendor/assets/javascripts/data-confirm-modal.js#L212)...

I had to dig into the source code to check what works, then I found out that only `verifyLabel` works. 'verify-text' or verifyText doesn't work. Works: Doesn't work:

I installed them gem and inserted the //= require data-confirm-modal in application.js This resulted in a Sprocket error with message: couldn't find file 'data-confirm-modal' with type 'application/javascript' So I had...