[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Make WTID
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Make WTID clickable so as to track it on-the-fly. |
Date: |
Tue, 28 Feb 2017 16:20:30 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant-frontends.
The following commit(s) were added to refs/heads/master by this push:
new 420bbad Make WTID clickable so as to track it on-the-fly.
420bbad is described below
commit 420bbad0bd9fde2fa2047d9320c5ab139d502a5b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 28 16:20:13 2017 +0100
Make WTID clickable so as to track it on-the-fly.
---
talerfrontends/blog/static/backoffice.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/talerfrontends/blog/static/backoffice.js
b/talerfrontends/blog/static/backoffice.js
index 237e08a..7118ef0 100644
--- a/talerfrontends/blog/static/backoffice.js
+++ b/talerfrontends/blog/static/backoffice.js
@@ -52,6 +52,11 @@ function toggle_visible(overlay){
overlay.style.opacity = 1;
}
+function track_transfer(wtid){
+ // Extract Exchange and WTID from 'wtid'
+ console.log("Tracking", wtid);
+}
+
function track_order(order_id, instance){
var req = new XMLHttpRequest();
req.open("GET", `/track/order?order_id=${order_id}&instance=${instance}`,
true);
@@ -78,11 +83,13 @@ function track_order(order_id, instance){
for(var j=0; j<entry.coins.length; j++){
var coin = entry.coins[j];
var row = document.createElement("tr");
- row.innerHTML = `<td>${entry.wtid.substring(0, 8)}...</td>
+ row.innerHTML = `<td>
+ <a href="#"
+
onclick='track_transfer("${entry.wtid}")'>${entry.wtid.substring(0, 8)}...</a>
+ </td>
<td>${amount_to_string(coin.amount_with_fee)}</td>
<td>${coin.coin_pub.substring(0, 8)}...</td>
<td>${parse_date(entry.execution_time)}</td>`;
- //console.log(row.outerHTML);
table.appendChild(row);
}
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant-frontends] branch master updated: Make WTID clickable so as to track it on-the-fly.,
gnunet <=