Hi Felix,
> You could create a startup module that exports after the story module
> and conditionally disables the save handlers…
>
> $tw.rootWidget.addEventListener("tm-auto-save-wiki", function() {});
> $tw.rootWidget.addEventListener("tm-save-wiki", function() {});
>
> …if the admin tiddler has not been loaded into the river (via #backend
> in the url);
>
> This way the save will be disabled completely.
>
Not sure this approach is necessary, since you can simply remove the
buttons or modify the save settings in the same startup module... but,
would you have some code-snippet that does what you suggest, i.e. loading
the ore save-listeners depending on whether or not we start the wiki with
the "backend" tiddler?
Best wishes,
Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e60d74f8-6c21-4f77-8e44-e4aa543952b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.