On Sep 19, 12:02 pm, Måns <[email protected]> wrote:
> Hi TwWizards
>
> I'm trying to make my own version of Google+ in TiddlySpace (a work in
> progress...)
>
> My greatest obstacle (at the moment) is that I can't make a html-form,
> which creates a new topic - or a new subtopic to an existing topic.
> It won't save changes...http://d-minus.tiddlyspace.com/#CreateTopic

I'm not sure if this is the correct or complete solution, but in
addition to merging in the defaultCustomFields, you need to call
autoSaveChanges.

So where you have:

    store.saveTiddler(t,t,txt, who, when, tags, fields);

change that to:

    var newTid = store.saveTiddler(t,t,txt, who, when, tags, fields);
    autoSaveChanges(null, [newTid]);

I got this idea by looking at

    
https://github.com/TiddlySpace/tiddlyspace/blob/master/src/plugins/TiddlySpaceInit.js

which creates and saves a lot of tiddlers.

-- 
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.

Reply via email to