[twdev] Re: Execute a script when 'close' is clicked to change modes - How to

2009-06-26 Thread Alex Hough
Thank you, it helps. Yours getting there* in a linear fashion, Alex *wherever that may be 2009/6/26 FND : > >> I'd like to change config.options.chkTopOfPageMode from true to false >> when the tiddler closes. > > You'd probably wanna hijack* the closeTiddler command handler: > ---

[twdev] Re: Execute a script when 'close' is clicked to change modes - How to

2009-06-26 Thread FND
> I'd like to change config.options.chkTopOfPageMode from true to false > when the tiddler closes. You'd probably wanna hijack* the closeTiddler command handler: --- (function() { var original = config.commands.closeTiddler.handler; config.commands.closeTiddler.handler = function(even