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");
}
}
On pc chrome works fine.
Is any bug or just me?
<a id="idMatch" data-role="button" data-click="cancelMatch">Cancel</a>
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");
}
}