Fossil

Check-in [41ce65fc31]
Login

Check-in [41ce65fc31]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pedantic function rename, as it will become relevant when work on the ajaxifying the forum start.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | ajax-wiki-editor
Files: files | file ages | folders
SHA3-256: 41ce65fc31eb6da64c63568c53a468ade30b2127dfc9c66453f2d184577a2c8e
User & Date: stephan 2020-07-31 16:49:40.830
Context
2020-07-31
17:31
Reordered /builtin a bit to allow it to respond with a 304 *without* generating extraneous output if etag_check() says it can. ... (check-in: 8c9ea22419 user: stephan tags: ajax-wiki-editor)
16:49
Pedantic function rename, as it will become relevant when work on the ajaxifying the forum start. ... (check-in: 41ce65fc31 user: stephan tags: ajax-wiki-editor)
16:44
Corrected doc falsehoods. ... (check-in: 1f0a3354aa user: stephan tags: ajax-wiki-editor)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/forum.c.
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
  return target;
}

/*
** Callback for use with style.c:BundleEmitters. Emits all JS code
** required by this page.
*/
void forum_emit_js_bundle(void){
  style_emit_script_builtin(1, 0, "forum.js");
  style_emit_script_fossil_bootstrap(1);
  style_emit_script_dom(1, 0);
  style_emit_script_builtin(1, 0, "fossil.page.forumpost.js");
}

/*







|







750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
  return target;
}

/*
** Callback for use with style.c:BundleEmitters. Emits all JS code
** required by this page.
*/
void forumpost_emit_js_bundle(void){
  style_emit_script_builtin(1, 0, "forum.js");
  style_emit_script_fossil_bootstrap(1);
  style_emit_script_dom(1, 0);
  style_emit_script_builtin(1, 0, "fossil.page.forumpost.js");
}

/*
Changes to src/style.c.
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
} BundleEmitter;
/*
** Map each required bundle here...
*/
static const BundleEmitter BundleEmitters[] = {
/* Keep these sorted for bsearch() */
{"fileedit.js", fileedit_emit_js_bundle},
{"forum.js", forum_emit_js_bundle},
{"wikiedit.js", wikiedit_emit_js_bundle}
};

/*
** Comparison function for bsearch() for searching a BundleEmitter
** list for a matching name.
*/







|







1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
} BundleEmitter;
/*
** Map each required bundle here...
*/
static const BundleEmitter BundleEmitters[] = {
/* Keep these sorted for bsearch() */
{"fileedit.js", fileedit_emit_js_bundle},
{"forum.js", forumpost_emit_js_bundle},
{"wikiedit.js", wikiedit_emit_js_bundle}
};

/*
** Comparison function for bsearch() for searching a BundleEmitter
** list for a matching name.
*/