[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;
},
- [Noalyss-commit] [noalyss] 05/22: Bug in SQL, (continued)
- [Noalyss-commit] [noalyss] 05/22: Bug in SQL, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 07/22: translation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 10/22: fix size menu box, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 04/22: indentation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 12/22: small bug in todo zoom : sorttable didn't work after a zoom, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 08/22: menu_ code is always upper case, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 13/22: Cosmetic, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 16/22: Documentation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 09/22: plugin : remove trailing space, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 14/22: Cosmetic : add font, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 18/22: remove some javascript warnings,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/22: translation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 22/22: Cosmetic, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 01/22: translation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 19/22: upgrade SQL scripts, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 15/22: New : new parameter (choice_cat) for the sub_menu see wiki, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 17/22: Bug replace "Fermer" by a cross, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 21/22: upgrade SQL, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 20/22: translation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 03/22: translation, Dany De Bontridder, 2015/06/18
- [Noalyss-commit] [noalyss] 06/22: translation, Dany De Bontridder, 2015/06/18