[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 210/323: sorttable.js : alternate properly th
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 210/323: sorttable.js : alternate properly the color of the table rows |
Date: |
Wed, 14 Mar 2018 17:38:51 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7a5b92a99587f86a78739038652f234c04918193
Author: Dany De Bontridder <address@hidden>
Date: Fri Feb 16 07:34:50 2018 +0100
sorttable.js : alternate properly the color of the table rows
---
html/js/sorttable.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/html/js/sorttable.js b/html/js/sorttable.js
index 2873e98..8a65474 100644
--- a/html/js/sorttable.js
+++ b/html/js/sorttable.js
@@ -192,13 +192,16 @@ var sorttable = {
}
delete row_array;
// Highlight odd and even rows properly
- sorttable.highlight_body(this);
+ sorttable.highlight_body(table);
});
}
}
},
- highlight_body:function(p_heading) {
- var p_table=p_heading.parentNode.parentNode.parentNode;
+ /**
+ * alternate properly the rows of the table,
+ * @param {DOMNode} p_table sorted table
+ */
+ highlight_body:function(p_table) {
var nb_row=p_table.rows;
var e=0;
for (e=1;e<nb_row.length;e++) {
- [Noalyss-commit] [noalyss] 201/323: CSS : page login : forgotten email, (continued)
- [Noalyss-commit] [noalyss] 201/323: CSS : page login : forgotten email, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 190/323: SQL : remove comment on extension, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 200/323: Improve Cosmetic : login page, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 198/323: Improve Cosmetic : login page, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 204/323: change email, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 191/323: Fix SQL, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 186/323: Merge branch 'master' into sql-review-700, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 223/323: Dashboard : Event hour is not mandatory, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 224/323: Dashboard : Add event improve cosmetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 205/323: CSS : recover box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 210/323: sorttable.js : alternate properly the color of the table rows,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 220/323: Welcome : adapt to small screen, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 195/323: demo is inactive by default, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 211/323: sorttable.js : Add an icon if the column is already sorted, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 196/323: Fix SQL, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 227/323: patch sql : remove commented code, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 225/323: Dashboard : Fix box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 181/323: Task #0001535: TVA : réécriture du module CFGTVA, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 183/323: Task #0001536: Achat - Vente : n'utilisez que les codes TVA disponibles, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 215/323: Plugin : fix doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 213/323: Plugin : fix indent, Dany De Bontridder, 2018/03/14