Skip to content

Instantly share code, notes, and snippets.

@mrkacan
Created April 20, 2018 07:15
Show Gist options
  • Save mrkacan/493ecfefdfb66a64ec0b69aab82c6dd3 to your computer and use it in GitHub Desktop.
Save mrkacan/493ecfefdfb66a64ec0b69aab82c6dd3 to your computer and use it in GitHub Desktop.
C# MVC Iphone click button render problem solved (.NET MVC)
function onClickBuyButton() {
function reClick(){
let asd = setTimeout(function () {
$('.buyButton').click();
lock = false;
}, 200);
return true;
}
if ($('#termsofservice').is(':checked')) {
if (!lock) {
loadingBox.show(display = true);
$(this).attr('value', 'Loading');
reClick();
lock = true;
return false;
} else {
return true;
}
} else {
$(".terms-of-service-warning-box").dialog();
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment