diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-12-17 15:30:08 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-12-17 15:30:08 +0100 |
commit | 34b039de45d33b80149713ab856f1d4bd1d1e966 (patch) | |
tree | 0a8cbbd45ececb02d6a439afdeb638bff65c469c /extension/pages/confirm-contract.tsx | |
parent | dbf4de68b38cec6540ea56934c14b46f1d822c1a (diff) | |
parent | 6d677f0ec531fc8caea487e916884b14a049891a (diff) | |
download | wallet-core-34b039de45d33b80149713ab856f1d4bd1d1e966.tar.xz |
Merge branch 'master' of ssh://taler.net/var/git/wallet
Diffstat (limited to 'extension/pages/confirm-contract.tsx')
-rw-r--r-- | extension/pages/confirm-contract.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/extension/pages/confirm-contract.tsx b/extension/pages/confirm-contract.tsx index e12fdfd2d..811e2e001 100644 --- a/extension/pages/confirm-contract.tsx +++ b/extension/pages/confirm-contract.tsx @@ -24,19 +24,18 @@ Handlebars.registerHelper('prettyAmount', function(amount) { document.addEventListener("DOMContentLoaded", (e) => { - let contract = JSON.parse(query.contract); - console.dir(contract); + let offer = JSON.parse(query.offer); + console.dir(offer); let source = $_("contract-template").innerHTML; let template = Handlebars.compile(source); - let html = template(contract.contract); + let html = template(offer.contract); $_("render-contract").innerHTML = html; - - document.getElementById("confirm-purchase").addEventListener("click", (e) => { + document.getElementById("confirm-pay").addEventListener("click", (e) => { let d = clone(query); - chrome.runtime.sendMessage({type:'confirm-purchase', detail: d}, (resp) => { + chrome.runtime.sendMessage({type:'confirm-pay', detail: d}, (resp) => { if (resp.success === true) { document.location.href = resp.backlink; } else { @@ -46,7 +45,6 @@ document.addEventListener("DOMContentLoaded", (e) => { <pre>${resp.text}</pre>`; } }); - }); }); |