gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant-frontends] branch master updated: XPath to


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant-frontends] branch master updated: XPath to fetch inner table
Date: Tue, 28 Feb 2017 11:22:17 +0100

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

marcello pushed a commit to branch master
in repository merchant-frontends.

The following commit(s) were added to refs/heads/master by this push:
     new f7b4ea9  XPath to fetch inner table
f7b4ea9 is described below

commit f7b4ea99cbb8e97d42beb3c69bc221d15820a778
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 28 11:22:06 2017 +0100

    XPath to fetch inner table
---
 talerfrontends/blog/static/backoffice.js      | 4 ++--
 talerfrontends/blog/templates/backoffice.html | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/talerfrontends/blog/static/backoffice.js 
b/talerfrontends/blog/static/backoffice.js
index 4a60a0f..a65dfa3 100644
--- a/talerfrontends/blog/static/backoffice.js
+++ b/talerfrontends/blog/static/backoffice.js
@@ -67,9 +67,9 @@ function track_order(order_id, instance){
         var entry = tracks[i];
         var overlay = document.getElementsByClassName("overlay")[0];
         var track_content = 
document.getElementsByClassName("track-content")[0];
-        var table = track_content.firstChild;
-        console.log(track_content.outerHTML);
+        var table = document.evaluate("/table", track_content, null, 
XPathResult.ANY_TYPE,null);
         console.log(track_content.childNodes);
+        console.log("table?", table);
         overlay.style.visibility = "visible";
         overlay.style.opacity = 1;
         for(var j=0; j<entry.coins.length; j++){
diff --git a/talerfrontends/blog/templates/backoffice.html 
b/talerfrontends/blog/templates/backoffice.html
index a44a4ed..609775e 100644
--- a/talerfrontends/blog/templates/backoffice.html
+++ b/talerfrontends/blog/templates/backoffice.html
@@ -19,7 +19,6 @@
       <h2>Tracks</h2>
       <a class="close" href="/backoffice">&times;</a>
       <div class="track-content">
-        <!-- Filled by JS. -->
         <table style="visibility: hidden;">
           <tbody>
             <tr>

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



reply via email to

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