Fossil SCM
Renamed /fileedit's setFileContentMethods() to setContentMethods() to consolidate the naming convention for this client hook across pages which use it (which now includes the ajax wiki editor).
Commit
bdfbc9f912dc42a63d33c32679a71cefe3410b8349cffb3dc2092cd5f2ab7cce
Parent
38d1b32bdec37cd…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/fossil.page.fileedit.js | ||
| +++ src/fossil.page.fileedit.js | ||
| @@ -819,11 +819,11 @@ | ||
| 819 | 819 | For use when installing a custom editor widget. Pass it the |
| 820 | 820 | getter and setter callbacks to fetch resp. set the content of the |
| 821 | 821 | custom widget. They will be triggered via |
| 822 | 822 | P.fileContent(). Returns this object. |
| 823 | 823 | */ |
| 824 | - P.setFileContentMethods = function(getter, setter){ | |
| 824 | + P.setContentMethods = function(getter, setter){ | |
| 825 | 825 | this.fileContent.get = getter; |
| 826 | 826 | this.fileContent.set = setter; |
| 827 | 827 | return this; |
| 828 | 828 | }; |
| 829 | 829 | |
| 830 | 830 |
| --- src/fossil.page.fileedit.js | |
| +++ src/fossil.page.fileedit.js | |
| @@ -819,11 +819,11 @@ | |
| 819 | For use when installing a custom editor widget. Pass it the |
| 820 | getter and setter callbacks to fetch resp. set the content of the |
| 821 | custom widget. They will be triggered via |
| 822 | P.fileContent(). Returns this object. |
| 823 | */ |
| 824 | P.setFileContentMethods = function(getter, setter){ |
| 825 | this.fileContent.get = getter; |
| 826 | this.fileContent.set = setter; |
| 827 | return this; |
| 828 | }; |
| 829 | |
| 830 |
| --- src/fossil.page.fileedit.js | |
| +++ src/fossil.page.fileedit.js | |
| @@ -819,11 +819,11 @@ | |
| 819 | For use when installing a custom editor widget. Pass it the |
| 820 | getter and setter callbacks to fetch resp. set the content of the |
| 821 | custom widget. They will be triggered via |
| 822 | P.fileContent(). Returns this object. |
| 823 | */ |
| 824 | P.setContentMethods = function(getter, setter){ |
| 825 | this.fileContent.get = getter; |
| 826 | this.fileContent.set = setter; |
| 827 | return this; |
| 828 | }; |
| 829 | |
| 830 |
+1
-1
| --- www/fileedit-page.md | ||
| +++ www/fileedit-page.md | ||
| @@ -245,11 +245,11 @@ | ||
| 245 | 245 | |
| 246 | 246 | First, install proxy functions so that `fossil.page.fileContent()` |
| 247 | 247 | can get and set your content: |
| 248 | 248 | |
| 249 | 249 | ``` |
| 250 | -fossil.page.setFileContentMethods( | |
| 250 | +fossil.page.setContentMethods( | |
| 251 | 251 | function(){ return text-form content of your widget }, |
| 252 | 252 | function(content){ set text-form content of your widget } |
| 253 | 253 | }; |
| 254 | 254 | ``` |
| 255 | 255 | |
| 256 | 256 |
| --- www/fileedit-page.md | |
| +++ www/fileedit-page.md | |
| @@ -245,11 +245,11 @@ | |
| 245 | |
| 246 | First, install proxy functions so that `fossil.page.fileContent()` |
| 247 | can get and set your content: |
| 248 | |
| 249 | ``` |
| 250 | fossil.page.setFileContentMethods( |
| 251 | function(){ return text-form content of your widget }, |
| 252 | function(content){ set text-form content of your widget } |
| 253 | }; |
| 254 | ``` |
| 255 | |
| 256 |
| --- www/fileedit-page.md | |
| +++ www/fileedit-page.md | |
| @@ -245,11 +245,11 @@ | |
| 245 | |
| 246 | First, install proxy functions so that `fossil.page.fileContent()` |
| 247 | can get and set your content: |
| 248 | |
| 249 | ``` |
| 250 | fossil.page.setContentMethods( |
| 251 | function(){ return text-form content of your widget }, |
| 252 | function(content){ set text-form content of your widget } |
| 253 | }; |
| 254 | ``` |
| 255 | |
| 256 |