Delete message marker

New home Forums Pro Add-on Troubleshooting Delete message marker

  • This topic has 0 replies, 1 voice, and was last updated 1 year ago by itc.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #46185


    When I delete a marker by clicking the ‘delete marker’ button, it just deletes the marker without giving a warning. I want to give admins the possibility to cancel the removement by an alert/confirmation pop-up when the button is clicked.

    I see that the bulk-delete option has a alert/confirmation pop-up.

    How can I easily implement this for the delete button in my marker overview?

    Thanks in advance.


    Hi there

    Thank you for getting in touch.

    You could solve this using jQuery – you would need to unbind the click listener for that delete button first, then bind a new listener.

    Inside the new listener you can use JavaScripts confirm to show a confirmation message, if that passes, please see legacy-map-edit-page.js aronud line 208 for the AJAX call you need to make to delete markers.

    If you’re not confident doing that yourself and need us to provide specific code, please let us know and we can provide that for you.

    I hope that helps?

    Kind regards
    – Perry

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.