summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-01-05 15:43:18 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-01-05 15:43:18 +0100
commit3459dcf8c3373ee9c409975a66507afcd9755afa (patch)
tree61843b221e50e8864c96262bf059c50b9eff181c
parent1203d49ff4d45907a15c96b90bdf8939663b8e7b (diff)
downloadbackoffice-3459dcf8c3373ee9c409975a66507afcd9755afa.tar.gz
backoffice-3459dcf8c3373ee9c409975a66507afcd9755afa.tar.bz2
backoffice-3459dcf8c3373ee9c409975a66507afcd9755afa.zip
fix set instance global
-rw-r--r--talerbackoffice/backoffice/static/backoffice.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/talerbackoffice/backoffice/static/backoffice.js b/talerbackoffice/backoffice/static/backoffice.js
index 73d21b6..43ae9a2 100644
--- a/talerbackoffice/backoffice/static/backoffice.js
+++ b/talerbackoffice/backoffice/static/backoffice.js
@@ -310,8 +310,8 @@ function cherry_pick_form_transfer(form){
* Retrieve current istance being tracked.
*/
function get_instance(){
- var select = document.getElementByID("instance");
- INSTANCE = select.value;
+ var select = document.getElementById("instance");
+ return select.value;
}
/**
@@ -329,7 +329,7 @@ function change_instance(){
*/
function get_history(scroll){
if (!INSTANCE)
- INSTANE = get_instance();
+ INSTANCE = get_instance();
var loader = document.getElementsByClassName("loader")[0];
loader.style.visibility = "visible";
@@ -356,6 +356,7 @@ function get_history(scroll){
}
else{
console.log("error: status != 200");
+ console.log("response", req.responseText);
}
}
}