Created
April 20, 2018 07:15
-
-
Save mrkacan/493ecfefdfb66a64ec0b69aab82c6dd3 to your computer and use it in GitHub Desktop.
C# MVC Iphone click button render problem solved (.NET MVC)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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