noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 18/22: remove some javascript warnings


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 18/22: remove some javascript warnings
Date: Thu, 18 Jun 2015 15:56:11 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5a7deeadfc9355eabfe92cb35dcdff7e4ca3c7a1
Author: Dany De Bontridder <address@hidden>
Date:   Wed Jun 17 19:22:16 2015 +0200

    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 3a74685..6de6cd2 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: '<h2 class="title">Chargement</h2>' + loading()
     };
     var y = fixed_position(10, 250)
diff --git a/html/js/sorttable.js b/html/js/sorttable.js
index cfe0ae4..d6b2e37 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<rows.length; j++) {
                  row_array[row_array.length] = 
[sorttable.getInnerText(rows[j].cells[col]), rows[j]];
                }
@@ -279,9 +279,9 @@ sorttable = {
      each sort function takes two parameters, a and b
      you are comparing a[0] and b[0] */
   sort_numeric: function(a,b) {
-    aa = parseFloat(a[0].replace(/[^0-9.-]/g,''));
+    var aa = parseFloat(a[0].replace(/[^0-9.-]/g,''));
     if (isNaN(aa)) aa = 0;
-    bb = parseFloat(b[0].replace(/[^0-9.-]/g,''));
+    var bb = parseFloat(b[0].replace(/[^0-9.-]/g,''));
     if (isNaN(bb)) bb = 0;
     return aa-bb;
   },



reply via email to

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