summaryrefslogtreecommitdiff
path: root/js/backoffice.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/backoffice.js')
-rw-r--r--js/backoffice.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/backoffice.js b/js/backoffice.js
index 5ae68e0..646c33b 100644
--- a/js/backoffice.js
+++ b/js/backoffice.js
@@ -536,20 +536,17 @@ function get_instance(){
* Remove tracks from the main page table, but
* do NOT remove the table headers; it hides them though.
*/
-function clear_results(){
+var clear_results = function(){
var table = document.getElementById("history");
var tbody = xpath_get("tbody", table).snapshotItem(0);
var tbody_children = xpath_get("tbody/*[position() > 1]", table);
for(var i=0; i<tbody_children.snapshotLength; i++){
tbody.removeChild(tbody_children.snapshotItem(i));
}
-
xpath_get("tr[@class='headers']", tbody)
.snapshotItem(0).style.visibility = "hidden";
-
}
-
/**
* Make the instance selected effective. In particular, it
* triggers history retrieval for it.
@@ -648,4 +645,5 @@ document.onkeydown = function(e) {
if (typeof(module) != "undefined"){
module.exports.track_transfer = track_transfer;
module.exports.track_order = track_order;
+ clear_results = ()=>true;
}