data-confirm-modal
data-confirm-modal copied to clipboard
Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.
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/
I think able to using html.
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?
I've had an app running for a long time, but just started getting this error out of the blue  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:...
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...