Button click fire twice on ios safari

1 posts, 0 answers
  1. Juan Carlos
    Juan Carlos avatar
    8 posts
    Member since:
    Oct 2012

    Posted 13 Nov 2012 Link to this post

    It works fine, but when you click after event it fires again, on ios safari.
    On pc chrome works fine. 
    Is any bug or just me? 
    <a id="idMatch" data-role="button" data-click="cancelMatch">Cancel</a>

     function cancelMatch(e){
        e.preventDefault();
        mid = this.element.prop("id");
    if (confirm("Are you sure to delete " ))  {
    $.post('urldelete.php',
    {matchid:mid},
    function(data){
    if (data['success']) {
    alert(data['message']);
    } else {
    alert(data['message']);
    }
    }, "json");
     } 
        }

Back to Top