Great! Now it works like a charm. Just tried to adapt it for permaview and it seems this can be used for all the other default macros.
Thanks again. On 28 Nov., 17:41, Eric Shulman <[email protected]> wrote: > > I tried your code in empty TWs v2.6.5 and v2.6.1 using Firefox v8.01 > > and Firefox 3.6.18 portable under Windows 7. > > In all 4 cases clicking the "new tiddler" button in the backstage does > > NOT open a new tiddler. > > Sorry about that! I posted the code without testing it myself, and > there was a small error on one line. Change this: > e.getElementsByTagName('a')[0].onclick(ev); > to > e.getElementsByTagName('a')[0].onclick(); > > (i.e., remove the 'ev' argument from the function call) > > I also noticed that when the backstage menu item is invoked, the > TWCore handler displays a message: "[object] [object]", which is > obviously not very useful. To bypass this spurious message, add this > line at the beginnning of the action function: > clearMessage(); > > This time, I tested the code and, with the above tweaks, it works as > intended. > > enjoy, > -e -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

