Fossil SCM
Update some docs for the current reality.
Commit
91a6d48a9391a0f0bbd505869c39207087ee2a14297bedfb990d5b8ef0b351b2
Parent
0db7eccd47f2e12…
1 file changed
+8
-5
+8
-5
| --- src/fossil.page.forumpost.js | ||
| +++ src/fossil.page.forumpost.js | ||
| @@ -811,20 +811,23 @@ | ||
| 811 | 811 | F.ForumPostEditor = ForumPostEditor; |
| 812 | 812 | |
| 813 | 813 | /** |
| 814 | 814 | When the page is loaded, this handler does the following: |
| 815 | 815 | |
| 816 | - - Installs expand/collapse UI elements on "long" posts and collapses | |
| 816 | + 1. Installs expand/collapse UI elements on "long" posts and collapses | |
| 817 | 817 | them. |
| 818 | 818 | |
| 819 | - - Any pikchr-generated SVGs get a source-toggle button added to them | |
| 819 | + 2. Any pikchr-generated SVGs get a source-toggle button added to them | |
| 820 | 820 | which activates when the mouse is over the image or it is tapped. |
| 821 | + | |
| 822 | + 3. Plugs in a new edit/reply widget to forum posts. | |
| 821 | 823 | |
| 822 | 824 | This is a harmless no-op if the current page has neither forum |
| 823 | - post constructs for (1) nor any pikchr images for (2), nor will | |
| 824 | - NOT running this code cause any breakage for clients with no JS | |
| 825 | - support: this is all "nice-to-have", not required functionality. | |
| 825 | + post constructs for (1) and (3) nor any pikchr images for (2), | |
| 826 | + nor will NOT running this code cause any breakage for clients | |
| 827 | + with no JS support: this is all "nice-to-have", not required | |
| 828 | + functionality. | |
| 826 | 829 | */ |
| 827 | 830 | F.onPageLoad(function(){ |
| 828 | 831 | const scrollbarIsVisible = (e)=>e.scrollHeight > e.clientHeight; |
| 829 | 832 | /* Returns an event handler which implements the post expand/collapse toggle |
| 830 | 833 | on contentElem when the given widget is activated. */ |
| 831 | 834 |
| --- src/fossil.page.forumpost.js | |
| +++ src/fossil.page.forumpost.js | |
| @@ -811,20 +811,23 @@ | |
| 811 | F.ForumPostEditor = ForumPostEditor; |
| 812 | |
| 813 | /** |
| 814 | When the page is loaded, this handler does the following: |
| 815 | |
| 816 | - Installs expand/collapse UI elements on "long" posts and collapses |
| 817 | them. |
| 818 | |
| 819 | - Any pikchr-generated SVGs get a source-toggle button added to them |
| 820 | which activates when the mouse is over the image or it is tapped. |
| 821 | |
| 822 | This is a harmless no-op if the current page has neither forum |
| 823 | post constructs for (1) nor any pikchr images for (2), nor will |
| 824 | NOT running this code cause any breakage for clients with no JS |
| 825 | support: this is all "nice-to-have", not required functionality. |
| 826 | */ |
| 827 | F.onPageLoad(function(){ |
| 828 | const scrollbarIsVisible = (e)=>e.scrollHeight > e.clientHeight; |
| 829 | /* Returns an event handler which implements the post expand/collapse toggle |
| 830 | on contentElem when the given widget is activated. */ |
| 831 |
| --- src/fossil.page.forumpost.js | |
| +++ src/fossil.page.forumpost.js | |
| @@ -811,20 +811,23 @@ | |
| 811 | F.ForumPostEditor = ForumPostEditor; |
| 812 | |
| 813 | /** |
| 814 | When the page is loaded, this handler does the following: |
| 815 | |
| 816 | 1. Installs expand/collapse UI elements on "long" posts and collapses |
| 817 | them. |
| 818 | |
| 819 | 2. Any pikchr-generated SVGs get a source-toggle button added to them |
| 820 | which activates when the mouse is over the image or it is tapped. |
| 821 | |
| 822 | 3. Plugs in a new edit/reply widget to forum posts. |
| 823 | |
| 824 | This is a harmless no-op if the current page has neither forum |
| 825 | post constructs for (1) and (3) nor any pikchr images for (2), |
| 826 | nor will NOT running this code cause any breakage for clients |
| 827 | with no JS support: this is all "nice-to-have", not required |
| 828 | functionality. |
| 829 | */ |
| 830 | F.onPageLoad(function(){ |
| 831 | const scrollbarIsVisible = (e)=>e.scrollHeight > e.clientHeight; |
| 832 | /* Returns an event handler which implements the post expand/collapse toggle |
| 833 | on contentElem when the given widget is activated. */ |
| 834 |