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 (b19c24c -> 8fee15


From: gnunet
Subject: [GNUnet-SVN] [taler-backoffice] branch master updated (b19c24c -> 8fee152)
Date: Thu, 07 Jun 2018 10:33:08 +0200

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

marcello pushed a change to branch master
in repository backoffice.

    from b19c24c  Scrolling feature.
     new c328d5d  Remove error bar upon instance switch.
     new 8fee152  Use red bar to advertise 202s.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 js/backoffice.js | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/js/backoffice.js b/js/backoffice.js
index 35e5c88..9fd0bda 100644
--- a/js/backoffice.js
+++ b/js/backoffice.js
@@ -186,7 +186,8 @@ var track_transfer = function(exchange, wtid, cb){
 
 /* Fill the information bar on the top of the page with
  * error messages.  */
-var show_error = function(response_text, keep_history){
+var show_warning;
+var show_error = show_warning = function(response_text){
 
   toggle_loader();
   close_popup();
@@ -260,12 +261,8 @@ function fill_box(tracks, http_code)
 
   if (http_code == 202){
     console.log("Pending order.");
-    var overlay = document.getElementsByClassName("overlay")[0];
-    var track_content = document
-      .getElementsByClassName("track-content")[0];
-    track_content.innerHTML = "This order is still" +
-      "waiting to be paid back.";
-    toggle_overlay();
+    toggle_loader();
+    show_warning("This order is still waiting to be paid back");
     return;
   }
 
@@ -362,7 +359,7 @@ function fill_table(scroll, data, execution_time, 
wtid_marker){
 
   /* not append data, erase!  */
   if (!scroll){
-    clean_results();
+    clear_results();
     if(0 == data.length){
       /* make NO RESULTS visible and hide tab headers */
       nr.style.display = "block";
@@ -516,7 +513,7 @@ function get_instance(){
  * Remove tracks from the main page table, but do NOT remove
  * the table headers
  */
-function clean_results(){
+function clear_results(){
   var table = document.getElementById("history");
   var tbody = xpath_get("tbody", table).snapshotItem(0);
   var tbody_children = xpath_get("tbody/*[position() > 2]", table);
@@ -533,6 +530,12 @@ function change_instance(){
    * the same effect of reloading the whole page.  */
   START = 0;
   LAST = 0;
+  clear_results();
+
+  /* Remove error info bar, if any exist.  */
+  var info_bar = document.getElementById("information-bar");
+  info_bar.style.visibility = "hidden"; 
+
   get_history(false, fill_table);
 }
 

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



reply via email to

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