summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-06-06 12:38:21 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-06-06 12:39:37 +0200
commit13009ff016ce8bde41e46a0927d8cb46898523e4 (patch)
tree9ad2a337a5890a6337ba8c43461a7bb831d2868f
parentf7e7583c98edae6954b359338e88d451ed349c38 (diff)
downloadbackoffice-13009ff016ce8bde41e46a0927d8cb46898523e4.tar.gz
backoffice-13009ff016ce8bde41e46a0927d8cb46898523e4.tar.bz2
backoffice-13009ff016ce8bde41e46a0927d8cb46898523e4.zip
UI/UX.
Do scroll history elements always. Only cases where they get erased are on page refresh, and instance switching. Also show the 202 Accepted message in the centered-box.
-rw-r--r--js/backoffice.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/backoffice.js b/js/backoffice.js
index 91f36de..82b0ae6 100644
--- a/js/backoffice.js
+++ b/js/backoffice.js
@@ -181,8 +181,6 @@ var track_transfer = function(exchange, wtid, cb){
var show_error = function(response_text, keep_history){
toggle_loader();
- if (!keep_history)
- clean_results();
close_popup();
var msg = response_text;
@@ -259,6 +257,7 @@ function fill_box(tracks, http_code)
.getElementsByClassName("track-content")[0];
track_content.innerHTML = "This order is still" +
"waiting to be paid back.";
+ toggle_overlay();
return;
}
@@ -355,7 +354,6 @@ function fill_table(scroll, data, execution_time, wtid_marker){
/* not append data, erase! */
if (!scroll){
- START = LAST = 0;
clean_results();
if(0 == data.length){
/* make NO RESULTS visible and hide tab headers */