Beautiful! Thank you, Andreas. Stephan, I'm not worried about bots, my repos all live on non-publicly-accessible servers. If that should change, I'll consider enabling the preview.
Also, extra cool that Fossil uses Tcl as its scripting language - I didn't know that until today. - Joe On Wed, Apr 23, 2014 at 11:35 AM, Andreas Kupries <[email protected]> wrote: > On Wed, Apr 23, 2014 at 10:26 AM, Stephan Beal <[email protected]> wrote: >> On Wed, Apr 23, 2014 at 3:38 AM, Joe Knapka <[email protected]> wrote: >>> >>> I find the requirement that I "Preview" ticket edits before I can >>> "Submit" them to be entirely annoying and of no value whatsoever. I >>> nevur mispell onything, and my repositories are entirely for my >>> personal use anyway. Is there any way to configure Fossil not to >>> require the "Preview" step? >> >> >> Not one built in. i believe the preview is intended to help thwart bots. One >> of my repos, due to negligent permissions on my part, was once bot-attacked, >> and the bot filled out both wiki pages and tickets with random content (but >> avoided changing the configured home page, so the attack went unnoticed >> longer than it should have!). > > The logic for ticket edits is a TH1/HTML script configurable at > > Admin -> Tickets -> Edit Ticket Page > > That is <repo-url>/tktsetup_editpage > > Using > http://core.tcl.tk/akupries/kettle/tktsetup_editpage > as example, at the bottom I see > > <tr> > <td align="right"> > <input type="submit" name="preview" value="Preview" /> > </td> > <td align="left">See how the description will appear after formatting.</td> > </tr> > > <th1>enable_output [info exists preview]</th1> > <tr> > <td align="right"> > <input type="submit" name="submit" value="Submit" /> > </td> > <td align="left">Apply the changes shown above</td> > </tr> > <th1>enable_output 1</th1> > > The first block is the preview button and can be removed. > The second block is the submission button, conditional on preview > (enable_output). > Lose the two enable_output lines and and it should be unconditional > > >> >> -- >> ----- stephan beal >> http://wanderinghorse.net/home/stephan/ >> http://gplus.to/sgbeal >> "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of >> those who insist on a perfect world, freedom will have to do." -- Bigby Wolf >> >> _______________________________________________ >> fossil-users mailing list >> [email protected] >> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >> > > > > -- > Andreas Kupries > Senior Tcl Developer > Code to Cloud: Smarter, Safer, Faster(tm) > F: 778.786.1133 > [email protected] > http://www.activestate.com > Learn about Stackato for Private PaaS: http://www.activestate.com/stackato > > EuroTcl'2014, July 12-13, Munich, GER -- http://www.eurotcl.tcl3d.org/ > 21'st Tcl/Tk Conference: Nov 10-14, Portland, OR, USA -- > http://www.tcl.tk/community/tcl2014/ > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- It is always best to think of reality as perfectly normal. Since the beginning, not one unusual thing has ever happened. - Less Wrong _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

