noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 16/18: sorttable.js : alternate properly the


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 16/18: sorttable.js : alternate properly the color of the table rows
Date: Sun, 22 Apr 2018 09:30:31 -0400 (EDT)

sparkyx pushed a commit to annotated tag rel6919-syn-180310
in repository noalyss.

commit 112dae7071ddf3c0b684ffed51ffe11f55c1e520
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 d2de7e5..85a1be9 100644
--- a/html/js/sorttable.js
+++ b/html/js/sorttable.js
@@ -192,13 +192,16 @@ 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++) {



reply via email to

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