Fossil SCM

Restore the Discard button which was inadvertently displaced in the previous checkin.

stephan 2026-06-13 13:01 UTC forum-editor-2026
Commit a93764552a4f74a3d2d6634a4acc684c2a5adf0ae5326fc68abb9b42e41af702
--- src/fossil.page.forumpost.js
+++ src/fossil.page.forumpost.js
@@ -1193,10 +1193,11 @@
11931193
hiddenFields: form.querySelectorAll(
11941194
'input[type=hidden][name=csrf]'
11951195
/* Do not inherit the fpid field, else this will become
11961196
an edit to that post rather than a response. */
11971197
),
1198
+ ondiscard: ()=>{/*need a noop here. Will call onclose()*/},
11981199
onsubmit: ondone,
11991200
onclose: ()=>{
12001201
if( releaseLock ){
12011202
releaseLock();
12021203
releaseLock = null;
@@ -1274,10 +1275,11 @@
12741275
':scope > fieldset.forum-status-selection select[name=status]'
12751276
);
12761277
12771278
const fpe = new F.ForumPostEditor(F.nu({
12781279
hiddenFields: form.querySelectorAll('input[type=hidden]'),
1280
+ ondiscard: ()=>{/*need a noop here. Will call onclose()*/},
12791281
onsubmit: ondone,
12801282
onclose: ()=>{
12811283
if(releaseLock){
12821284
releaseLock();
12831285
releaseLock = null;
12841286
--- src/fossil.page.forumpost.js
+++ src/fossil.page.forumpost.js
@@ -1193,10 +1193,11 @@
1193 hiddenFields: form.querySelectorAll(
1194 'input[type=hidden][name=csrf]'
1195 /* Do not inherit the fpid field, else this will become
1196 an edit to that post rather than a response. */
1197 ),
 
1198 onsubmit: ondone,
1199 onclose: ()=>{
1200 if( releaseLock ){
1201 releaseLock();
1202 releaseLock = null;
@@ -1274,10 +1275,11 @@
1274 ':scope > fieldset.forum-status-selection select[name=status]'
1275 );
1276
1277 const fpe = new F.ForumPostEditor(F.nu({
1278 hiddenFields: form.querySelectorAll('input[type=hidden]'),
 
1279 onsubmit: ondone,
1280 onclose: ()=>{
1281 if(releaseLock){
1282 releaseLock();
1283 releaseLock = null;
1284
--- src/fossil.page.forumpost.js
+++ src/fossil.page.forumpost.js
@@ -1193,10 +1193,11 @@
1193 hiddenFields: form.querySelectorAll(
1194 'input[type=hidden][name=csrf]'
1195 /* Do not inherit the fpid field, else this will become
1196 an edit to that post rather than a response. */
1197 ),
1198 ondiscard: ()=>{/*need a noop here. Will call onclose()*/},
1199 onsubmit: ondone,
1200 onclose: ()=>{
1201 if( releaseLock ){
1202 releaseLock();
1203 releaseLock = null;
@@ -1274,10 +1275,11 @@
1275 ':scope > fieldset.forum-status-selection select[name=status]'
1276 );
1277
1278 const fpe = new F.ForumPostEditor(F.nu({
1279 hiddenFields: form.querySelectorAll('input[type=hidden]'),
1280 ondiscard: ()=>{/*need a noop here. Will call onclose()*/},
1281 onsubmit: ondone,
1282 onclose: ()=>{
1283 if(releaseLock){
1284 releaseLock();
1285 releaseLock = null;
1286

Keyboard Shortcuts

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