Fossil SCM
Fix the sorttable.js module so that it works with more than one sortable table on the same screen.
Commit
230832004a18d6dfef8c9866158d4e1ba8971539f97812b355bc0149975214b0
Parent
04bcc6ce6e7fa34…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/sorttable.js | ||
| +++ src/sorttable.js | ||
| @@ -161,8 +161,8 @@ | ||
| 161 | 161 | this.setHdrIcons() |
| 162 | 162 | } |
| 163 | 163 | (function(){ |
| 164 | 164 | var x = document.getElementsByClassName("sortable"); |
| 165 | 165 | for(var i=0; i<x.length; i++){ |
| 166 | - SortableTable(x[i]); | |
| 166 | + new SortableTable(x[i]); | |
| 167 | 167 | } |
| 168 | 168 | }()) |
| 169 | 169 |
| --- src/sorttable.js | |
| +++ src/sorttable.js | |
| @@ -161,8 +161,8 @@ | |
| 161 | this.setHdrIcons() |
| 162 | } |
| 163 | (function(){ |
| 164 | var x = document.getElementsByClassName("sortable"); |
| 165 | for(var i=0; i<x.length; i++){ |
| 166 | SortableTable(x[i]); |
| 167 | } |
| 168 | }()) |
| 169 |
| --- src/sorttable.js | |
| +++ src/sorttable.js | |
| @@ -161,8 +161,8 @@ | |
| 161 | this.setHdrIcons() |
| 162 | } |
| 163 | (function(){ |
| 164 | var x = document.getElementsByClassName("sortable"); |
| 165 | for(var i=0; i<x.length; i++){ |
| 166 | new SortableTable(x[i]); |
| 167 | } |
| 168 | }()) |
| 169 |
+1
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -703,11 +703,11 @@ | ||
| 703 | 703 | " FROM artstat JOIN blob ON artstat.id=blob.rid" |
| 704 | 704 | " LEFT JOIN rcvfrom USING(rcvid)" |
| 705 | 705 | " LEFT JOIN user USING(uid)" |
| 706 | 706 | " WHERE atype='unknown'" |
| 707 | 707 | ); |
| 708 | - @ <table class='not-sortable' border='1' \ | |
| 708 | + @ <table class='sortable' border='1' \ | |
| 709 | 709 | @ data-column-types='ntttt' data-init-sort='0'> |
| 710 | 710 | @ <thead><tr> |
| 711 | 711 | @ <th>RecordID</th> |
| 712 | 712 | @ <th>Hash</th> |
| 713 | 713 | @ <th>User</th> |
| 714 | 714 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -703,11 +703,11 @@ | |
| 703 | " FROM artstat JOIN blob ON artstat.id=blob.rid" |
| 704 | " LEFT JOIN rcvfrom USING(rcvid)" |
| 705 | " LEFT JOIN user USING(uid)" |
| 706 | " WHERE atype='unknown'" |
| 707 | ); |
| 708 | @ <table class='not-sortable' border='1' \ |
| 709 | @ data-column-types='ntttt' data-init-sort='0'> |
| 710 | @ <thead><tr> |
| 711 | @ <th>RecordID</th> |
| 712 | @ <th>Hash</th> |
| 713 | @ <th>User</th> |
| 714 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -703,11 +703,11 @@ | |
| 703 | " FROM artstat JOIN blob ON artstat.id=blob.rid" |
| 704 | " LEFT JOIN rcvfrom USING(rcvid)" |
| 705 | " LEFT JOIN user USING(uid)" |
| 706 | " WHERE atype='unknown'" |
| 707 | ); |
| 708 | @ <table class='sortable' border='1' \ |
| 709 | @ data-column-types='ntttt' data-init-sort='0'> |
| 710 | @ <thead><tr> |
| 711 | @ <th>RecordID</th> |
| 712 | @ <th>Hash</th> |
| 713 | @ <th>User</th> |
| 714 |