summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-11-10 18:35:35 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-11-10 18:35:35 +0100
commite5988bf353ab4d2251cfc98c61322ec95cbf303c (patch)
treeea416f536fffb9a8bb3351edb091584d314cf86e
parent6d03017eba591f2fc6d194b27038f0914a88514f (diff)
downloadexchange-e5988bf353ab4d2251cfc98c61322ec95cbf303c.tar.gz
exchange-e5988bf353ab4d2251cfc98c61322ec95cbf303c.tar.bz2
exchange-e5988bf353ab4d2251cfc98c61322ec95cbf303c.zip
Adding passing details needed to the wallet through the
'wire funds' event (NOT tested)
-rw-r--r--website/index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/website/index.html b/website/index.html
index c79f3bbbb..4dff2a7ad 100644
--- a/website/index.html
+++ b/website/index.html
@@ -89,7 +89,12 @@
function wire_funds(){
- var trigger = new Event("taler-create-reserve");
+ let wallet_param = {
+ 'currencies' : new Array("KUDOS"),
+ 'input_name' : 'reserve-pk-id',
+ 'base_url' : window.location.host
+ };
+ var trigger = new CustomEvent("taler-create-reserve", {detail: wallet_param});
document.body.dispatchEvent(trigger);
};