gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-backoffice] branch master updated: UX.


From: gnunet
Subject: [GNUnet-SVN] [taler-backoffice] branch master updated: UX.
Date: Mon, 04 Jun 2018 15:31:26 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new 06b9664  UX.
06b9664 is described below

commit 06b9664975bc016727eefdb7fa418a11ece5daf9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Jun 4 15:30:05 2018 +0200

    UX.
    
    Info bar disappears and reappears if the user triggers
    subsequent errors.
---
 js/backoffice.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/js/backoffice.js b/js/backoffice.js
index eeac8f3..ba04d80 100644
--- a/js/backoffice.js
+++ b/js/backoffice.js
@@ -137,6 +137,11 @@ function make_marker(wtid){
  * 'fill_table()'.
  */
 var track_transfer = function(exchange, wtid, cb){
+
+  /* Remove any previous errors, if there are any.  */
+  var info_bar = document.getElementById("information-bar");
+  info_bar.style.visibility = "hidden"; 
+
   var qs = `/track/transfer?` +
            `exchange=${exchange}&` +
            `wtid=${wtid}&` +
@@ -176,7 +181,7 @@ var show_error = function(response_text){
       msg = parse['hint'];
 
   } catch (e) {
-    console.log("Must keep raw HTML-ish response");
+    console.log("Must keep raw response");
   }
   
   /* msg is ready here.  */
@@ -195,6 +200,11 @@ var show_error = function(response_text){
  * in the page.
  */
 var track_order = function(order_id, cb){
+  
+  /* Remove any previous errors, if there are any.  */
+  var info_bar = document.getElementById("information-bar");
+  info_bar.style.visibility = "hidden"; 
+
   var req = new XMLHttpRequest();
   var url = `/track/order?` +
             `order_id=${order_id}&` +

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]