[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: tinier hi
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: tinier history table |
Date: |
Fri, 14 Jul 2017 11:19:57 +0200 |
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 0813022 tinier history table
0813022 is described below
commit 081302209bc624536500eebfde2ed18b487404d2
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jul 14 11:19:40 2017 +0200
tinier history table
---
talerfrontends/blog/static/backoffice.css | 1 +
talerfrontends/blog/static/backoffice.js | 15 ++++++++++++++-
talerfrontends/blog/templates/backoffice.html | 5 ++++-
3 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/talerfrontends/blog/static/backoffice.css
b/talerfrontends/blog/static/backoffice.css
index 1a1b09f..ae24c14 100644
--- a/talerfrontends/blog/static/backoffice.css
+++ b/talerfrontends/blog/static/backoffice.css
@@ -17,6 +17,7 @@
.date, .amount {
text-align: right;
+ white-space: nowrap;
}
.summary {
diff --git a/talerfrontends/blog/static/backoffice.js
b/talerfrontends/blog/static/backoffice.js
index 3f3ffbc..b470afe 100644
--- a/talerfrontends/blog/static/backoffice.js
+++ b/talerfrontends/blog/static/backoffice.js
@@ -103,6 +103,13 @@ function toggle_overlay(force_close){
}
+function make_marker(wtid){
+ var div = document.createElement("div");
+ div.className = "wtid-marker order-id";
+ div.textContent = wtid;
+ return div;
+}
+
function track_transfer(exchange, wtid){
var loader = document.getElementsByClassName("loader")[0];
loader.style.visibility = "visible";
@@ -120,8 +127,14 @@ function track_transfer(exchange, wtid){
for(var i=0; i<tbody_children.snapshotLength; i++){
tbody.removeChild(tbody_children.snapshotItem(i));
}
- // FIXME: table now shown!
+ close_popup();
fill_table(tracks.deposits_sums, tracks.execution_time);
+
+ // draw a line @ the bottom, mentioning the WTID.
+ var table = document.getElementById("history");
+ var tbody = xpath_get("tbody", table).snapshotItem(0);
+ var marker = make_marker(wtid);
+ tbody.appendChild(marker);
break;
case 400:
console.log("Bad request, check submitted data!");
diff --git a/talerfrontends/blog/templates/backoffice.html
b/talerfrontends/blog/templates/backoffice.html
index 447ae54..b87495b 100644
--- a/talerfrontends/blog/templates/backoffice.html
+++ b/talerfrontends/blog/templates/backoffice.html
@@ -32,7 +32,10 @@
</form>
</div>
<div id="history-container">
- <table id="history" width="60%" style="visibility: hidden;">
+ <table id="history" width="50%" style="visibility: hidden;">
+ <col width="40">
+ <col width="40">
+ <col width="40">
<tbody>
<tr class="no-records">
<th colspan="3">No records found</th>
--
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: tinier history table,
gnunet <=