Fossil SCM
Restore the topln functionality.
Commit
5758e5bace3e0855be85f54484edc6e07a820ee5
Parent
20c63861d8dcbd3…
1 file changed
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1772,11 +1772,11 @@ | ||
| 1772 | 1772 | z += i; |
| 1773 | 1773 | if( z[0]=='\n' ) z++; |
| 1774 | 1774 | } |
| 1775 | 1775 | if( n<iEnd ) cgi_printf("</div>"); |
| 1776 | 1776 | @ </pre> |
| 1777 | - if( iStart ){ | |
| 1777 | + if( db_int(0, "SELECT EXISTS(SELECT 1 FROM lnos)") ){ | |
| 1778 | 1778 | @ <script>gebi('topln').scrollIntoView(true);</script> |
| 1779 | 1779 | } |
| 1780 | 1780 | } |
| 1781 | 1781 | |
| 1782 | 1782 | |
| 1783 | 1783 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1772,11 +1772,11 @@ | |
| 1772 | z += i; |
| 1773 | if( z[0]=='\n' ) z++; |
| 1774 | } |
| 1775 | if( n<iEnd ) cgi_printf("</div>"); |
| 1776 | @ </pre> |
| 1777 | if( iStart ){ |
| 1778 | @ <script>gebi('topln').scrollIntoView(true);</script> |
| 1779 | } |
| 1780 | } |
| 1781 | |
| 1782 | |
| 1783 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1772,11 +1772,11 @@ | |
| 1772 | z += i; |
| 1773 | if( z[0]=='\n' ) z++; |
| 1774 | } |
| 1775 | if( n<iEnd ) cgi_printf("</div>"); |
| 1776 | @ </pre> |
| 1777 | if( db_int(0, "SELECT EXISTS(SELECT 1 FROM lnos)") ){ |
| 1778 | @ <script>gebi('topln').scrollIntoView(true);</script> |
| 1779 | } |
| 1780 | } |
| 1781 | |
| 1782 | |
| 1783 |