[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] 02/02: Use red bar to advertise 202s.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] 02/02: Use red bar to advertise 202s. |
Date: |
Thu, 07 Jun 2018 10:33:10 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository backoffice.
commit 8fee152a65795ba1505f11a93b5954eadcd9f601
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Jun 7 10:32:13 2018 +0200
Use red bar to advertise 202s.
---
js/backoffice.js | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/js/backoffice.js b/js/backoffice.js
index dc6a193..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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden