diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-03-02 05:12:16 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-03-02 05:12:16 +0100 |
commit | 691d5288fca46ced4ffd391229660969355c875b (patch) | |
tree | 43e6a63a5df1cb7434d5267567742658863839f4 /examples/blog/essay_cc-form.html | |
parent | 586e3c28f6349b460ee92da5c86bbbed4b1e997f (diff) | |
download | merchant-691d5288fca46ced4ffd391229660969355c875b.tar.gz merchant-691d5288fca46ced4ffd391229660969355c875b.tar.bz2 merchant-691d5288fca46ced4ffd391229660969355c875b.zip |
cancel timeout
Diffstat (limited to 'examples/blog/essay_cc-form.html')
-rw-r--r-- | examples/blog/essay_cc-form.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/blog/essay_cc-form.html b/examples/blog/essay_cc-form.html index 42a7ae16..7e0c04ed 100644 --- a/examples/blog/essay_cc-form.html +++ b/examples/blog/essay_cc-form.html @@ -67,8 +67,13 @@ } var walletNotPresent = false; + var timer; function has_taler_wallet_cb(aEvent){ + if (timer) { + window.clearTimeout(timer); + timer = void 0; + } if (walletNotPresent) { return; } @@ -87,7 +92,7 @@ has_taler_wallet_cb, false); - window.setTimeout(handleTimeout, 300); + timer = window.setTimeout(handleTimeout, 250); function executePayment(H_contract, pay_url, offering_url) { var detail = { |