[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Right for
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Right formatting track content BUT not able to append it to the popup's table. |
Date: |
Tue, 28 Feb 2017 11:12:08 +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 0fd1846 Right formatting track content BUT not able to append it to
the popup's table.
0fd1846 is described below
commit 0fd1846978913c746cc16fd36af1cd39c47a8cc6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 28 11:11:06 2017 +0100
Right formatting track content BUT not able to append
it to the popup's table.
---
talerfrontends/blog/static/backoffice.js | 21 +++++++++++----------
talerfrontends/blog/templates/backoffice.html | 10 ++++++++++
2 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/talerfrontends/blog/static/backoffice.js
b/talerfrontends/blog/static/backoffice.js
index f48f836..4a60a0f 100644
--- a/talerfrontends/blog/static/backoffice.js
+++ b/talerfrontends/blog/static/backoffice.js
@@ -67,23 +67,24 @@ function track_order(order_id, instance){
var entry = tracks[i];
var overlay = document.getElementsByClassName("overlay")[0];
var track_content =
document.getElementsByClassName("track-content")[0];
- var p = document.createElement("p");
- p.textContent = i;
- track_content.appendChild(p);
+ var table = track_content.firstChild;
+ console.log(track_content.outerHTML);
+ console.log(track_content.childNodes);
overlay.style.visibility = "visible";
overlay.style.opacity = 1;
- console.log("i", i);
- console.log("Exchange", entry.exchange);
- console.log("WTID", entry.wtid);
- console.log("execution_time", parse_date(entry.execution_time));
for(var j=0; j<entry.coins.length; j++){
var coin = entry.coins[j];
- console.log(" i, coin_pub", coin.coin_pub);
- console.log(" i, amount_with_fee",
amount_to_string(coin.amount_with_fee));
- console.log(" i, deposit_fee", amount_to_string(coin.deposit_fee));
+ var row = document.createElement("tr");
+ row.innerHTML = `<td>${entry.wtid}</td>
+ <td>${amount_to_string(coin.amount_with_fee)}</td>
+ <td>${coin.coin_pub}</td>
+ <td>${parse_date(entry.execution_time)}</td>`;
+ //console.log(row.outerHTML);
+ table.appendChild(row);
}
}
}
+ // Manage here 202 case (tracks not ready).
}
req.send();
}
diff --git a/talerfrontends/blog/templates/backoffice.html
b/talerfrontends/blog/templates/backoffice.html
index fb138db..a44a4ed 100644
--- a/talerfrontends/blog/templates/backoffice.html
+++ b/talerfrontends/blog/templates/backoffice.html
@@ -20,6 +20,16 @@
<a class="close" href="/backoffice">×</a>
<div class="track-content">
<!-- Filled by JS. -->
+ <table style="visibility: hidden;">
+ <tbody>
+ <tr>
+ <th>WTID</th>
+ <th>Amount</th>
+ <th>Coin</th>
+ <th>Date</th>
+ </tr>
+ </tbody>
+ </table>
</div>
</div>
</div>
--
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: Right formatting track content BUT not able to append it to the popup's table.,
gnunet <=