You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I start complaining (well, not really): very nice work on this plugin/package. A great replacement for the default JS confirm dialog.
There's something I can't figure out though.
On a page to edit a record (in Laravel 5), I have two options:
delete an image
redirect to another page
The first option should launch a confirm-with-reveal stating something like: "Are you sure you want to delete this record? This action cannot be undone."
The second option should launch a confirm-with-reveal stating: "You are about to leave this page. Have you saved you changes?"
Usually, I add a section to the page called @section('revealoptions') which contains a title and body option, extending the rest of the options from another page. However, since I have two options triggered a confirm-with-reveal, I can't use this or it will show the same text for both links.
Adding data-confirm="Text here" doesn't work because that will show the default JS confirm.
Am I missing something?
The text was updated successfully, but these errors were encountered:
I think I found a solution by adding a div with the right content in the blade, and triggering it on the anchor of the first option.
Not exactly what I had in mind, because I wanted to prevent using extra HTML, so if you have another suggestion: please share
Before I start complaining (well, not really): very nice work on this plugin/package. A great replacement for the default JS confirm dialog.
There's something I can't figure out though.
On a page to edit a record (in Laravel 5), I have two options:
The first option should launch a confirm-with-reveal stating something like: "Are you sure you want to delete this record? This action cannot be undone."
The second option should launch a confirm-with-reveal stating: "You are about to leave this page. Have you saved you changes?"
Usually, I add a section to the page called
@section('revealoptions')
which contains a title and body option, extending the rest of the options from another page. However, since I have two options triggered a confirm-with-reveal, I can't use this or it will show the same text for both links.Adding
data-confirm="Text here"
doesn't work because that will show the default JS confirm.Am I missing something?
The text was updated successfully, but these errors were encountered: