Replies: 1 comment 1 reply
-
If you filed an issue you will get the answer ;) but it's good you raise this. I'm not sure where we can document this /cc @agriffard |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Took me a while to figure this out so I thought I'll document it.
If you wish to trigger a confirm modal popup, you can use the existing JavaScript function in admin.js
Steps:
For the older version (e.g. the current master branch) add a
itemprop
attributeFor the current version (e.g. the current dev branch) add a
data-url-af
attributeTo perform a
GET
to the url specified in thehref
attribute useRemoveUrl
e.g.data-url-af="RemoveUrl"
To perform a
POST
to the url specified in thehref
attribute useRemoveUrl UnsafeUrl
e.g.data-url-af="RemoveUrl UnsafeUrl"
To pass your custom message, use the
data-message
attribute. e.g.data-message="my custom message"
For example:
Beta Was this translation helpful? Give feedback.
All reactions