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: fix set instance


From: gnunet
Subject: [GNUnet-SVN] [taler-backoffice] branch master updated: fix set instance global
Date: Fri, 05 Jan 2018 15:43:44 +0100

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 3459dcf  fix set instance global
3459dcf is described below

commit 3459dcf8c3373ee9c409975a66507afcd9755afa
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jan 5 15:43:18 2018 +0100

    fix set instance global
---
 talerbackoffice/backoffice/static/backoffice.js | 7 ++++---
 1 file 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);
       }
     }
   }

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



reply via email to

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