Fossil SCM

Use common HTML entities rather than obscure unicode characters for the arrows on sortable table columns.

drh 2015-01-06 21:43 trunk
Commit 4c803826adde3ddcfb0288a8118f329e7bb2800f
1 file changed +3 -3
+3 -3
--- src/report.c
+++ src/report.c
@@ -989,15 +989,15 @@
989989
@ arrowdiv[0].parentNode.removeChild(arrowdiv[0]);
990990
@ }
991991
@ for (var i=0; i<this.hdrRow.cells.length; i++) {
992992
@ if( this.columnTypes[i]=='x' ) continue;
993993
@ if( this.prevColumn==i+1 ){
994
- @ arrow = "\u2b07";
994
+ @ arrow = "&darr;"
995995
@ }else if( this.prevColumn==(-1-i) ){
996
- @ arrow = "\u2b06";
996
+ @ arrow = "&uarr;"
997997
@ }else{
998
- @ arrow = "\u21f3";
998
+ @ arrow = "&diams;"
999999
@ }
10001000
@ this.hdrRow.cells[i].innerHTML +=
10011001
@ "<span class='sortarrow'>" + arrow + "</div>";
10021002
@ }
10031003
@ }
10041004
--- src/report.c
+++ src/report.c
@@ -989,15 +989,15 @@
989 @ arrowdiv[0].parentNode.removeChild(arrowdiv[0]);
990 @ }
991 @ for (var i=0; i<this.hdrRow.cells.length; i++) {
992 @ if( this.columnTypes[i]=='x' ) continue;
993 @ if( this.prevColumn==i+1 ){
994 @ arrow = "\u2b07";
995 @ }else if( this.prevColumn==(-1-i) ){
996 @ arrow = "\u2b06";
997 @ }else{
998 @ arrow = "\u21f3";
999 @ }
1000 @ this.hdrRow.cells[i].innerHTML +=
1001 @ "<span class='sortarrow'>" + arrow + "</div>";
1002 @ }
1003 @ }
1004
--- src/report.c
+++ src/report.c
@@ -989,15 +989,15 @@
989 @ arrowdiv[0].parentNode.removeChild(arrowdiv[0]);
990 @ }
991 @ for (var i=0; i<this.hdrRow.cells.length; i++) {
992 @ if( this.columnTypes[i]=='x' ) continue;
993 @ if( this.prevColumn==i+1 ){
994 @ arrow = "&darr;"
995 @ }else if( this.prevColumn==(-1-i) ){
996 @ arrow = "&uarr;"
997 @ }else{
998 @ arrow = "&diams;"
999 @ }
1000 @ this.hdrRow.cells[i].innerHTML +=
1001 @ "<span class='sortarrow'>" + arrow + "</div>";
1002 @ }
1003 @ }
1004

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button