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).

stephan 2020-07-31 01:21 trunk
Commit bdfbc9f912dc42a63d33c32679a71cefe3410b8349cffb3dc2092cd5f2ab7cce
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -819,11 +819,11 @@
819819
For use when installing a custom editor widget. Pass it the
820820
getter and setter callbacks to fetch resp. set the content of the
821821
custom widget. They will be triggered via
822822
P.fileContent(). Returns this object.
823823
*/
824
- P.setFileContentMethods = function(getter, setter){
824
+ P.setContentMethods = function(getter, setter){
825825
this.fileContent.get = getter;
826826
this.fileContent.set = setter;
827827
return this;
828828
};
829829
830830
--- 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
--- www/fileedit-page.md
+++ www/fileedit-page.md
@@ -245,11 +245,11 @@
245245
246246
First, install proxy functions so that `fossil.page.fileContent()`
247247
can get and set your content:
248248
249249
```
250
-fossil.page.setFileContentMethods(
250
+fossil.page.setContentMethods(
251251
function(){ return text-form content of your widget },
252252
function(content){ set text-form content of your widget }
253253
};
254254
```
255255
256256
--- 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

Keyboard Shortcuts

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