[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Making po
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: Making popup disappear once content below the overlay is available. |
Date: |
Tue, 14 Mar 2017 14:05:42 +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 103c36a Making popup disappear once content below the overlay is
available.
103c36a is described below
commit 103c36a129df4061bb398692e7e56ed117063e6d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 14 14:04:45 2017 +0100
Making popup disappear once content below the overlay is available.
---
talerfrontends/blog/static/backoffice.js | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/talerfrontends/blog/static/backoffice.js
b/talerfrontends/blog/static/backoffice.js
index 83372c3..a389a12 100644
--- a/talerfrontends/blog/static/backoffice.js
+++ b/talerfrontends/blog/static/backoffice.js
@@ -21,8 +21,6 @@
@licend The above is the entire license notice
for the JavaScript code in this page.
- @brief Contains functions that regulate the focus to input fields
- and others that request /history to the frontend
@author Marcello Stanisci
*/
"use strict";
@@ -47,8 +45,7 @@ function close_popup(){
tbody.removeChild(tbody_children.snapshotItem(i));
}
- var overlay = document.getElementsByClassName("overlay")[0];
-
+ toggle_overlay();
}
function amount_sum(a1, a2){
@@ -106,7 +103,6 @@ function toggle_overlay(){
function track_transfer(exchange, wtid){
var qs = `/track/transfer?exchange=${exchange}&wtid=${wtid}&instance=FSF`;
- console.log("Tracking", qs);
var req = new XMLHttpRequest();
req.open("GET", qs, true);
req.onload = function(){
@@ -120,9 +116,12 @@ function track_transfer(exchange, wtid){
tbody.removeChild(tbody_children.snapshotItem(i));
}
fill_table(tracks.deposits_sums, tracks.execution_time);
- // TBD.
+ close_popup();
+ }
+ else{
+ console.log(`Status: ${req.status}, not handled.`);
+ return;
}
- // TBD.
}
}
req.send();
--
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: Making popup disappear once content below the overlay is available.,
gnunet <=