From 5a7deeadfc9355eabfe92cb35dcdff7e4ca3c7a1 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 17 Jun 2015 19:22:16 +0200 Subject: [PATCH] remove some javascript warnings --- html/js/scripts.js | 2 +- html/js/sorttable.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/html/js/scripts.js b/html/js/scripts.js index 3a746859d..6de6cd206 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -726,7 +726,7 @@ function waiting_node() */ function waiting_box() { - obj = { + var obj = { id: 'wait_box', html: '

Chargement

' + loading() }; var y = fixed_position(10, 250) diff --git a/html/js/sorttable.js b/html/js/sorttable.js index cfe0ae4fd..d6b2e37c8 100644 --- a/html/js/sorttable.js +++ b/html/js/sorttable.js @@ -161,9 +161,9 @@ sorttable = { // i.e., we "decorate" each row with the actual sort key, // sort based on the sort keys, and then put the rows back in order // which is a lot faster because you only do getInnerText once per row - row_array = []; - col = this.sorttable_columnindex; - rows = this.sorttable_tbody.rows; + var row_array = []; + var col = this.sorttable_columnindex; + var rows = this.sorttable_tbody.rows; for (var j=0; j