Hi,
I have problem which I can't really determine:(
I've created a tool for a game which helps keep track of things to do
and so on.
I want to share it with anyone who would like to use it as an
unofficial addon to the game. For that purpose I've set it up in a way
all one needs to do is point and click without ever having to enter
the edit mode.
However, there is a problem:)
For creating a new tiddler from a button inside a tiddler which adds
the title of source tiddler as a tag I have this:
----------------------------------------------------------------
<script label="New quest">
var alwaysTag="quest";
var tid=story.findContainingTiddler(place);
tid=tid?tid.getAttribute('tiddler'):'';
var charTag=(tid).toLowerCase();
var p=prompt("Enter the quest name","");
//return
var title=(p);
var tags=(alwaysTag+" "+charTag);
store.saveTiddler(
title,
title,
store.getTiddlerText('questTemplate'),
config.options.txtUserName,
new Date(),
tags);
story.displayTiddler(null,title);
</script>
-----------------------------------------------------------------
Please look at the //return if I remove the // the button doesn't
work. However I need the return function so that user can abort the
creation of a new tiddler without affecting the entire tiddly.
Please have a look at the tool:
http://users.volja.net/adonis25/estiah.html
Go to Kuharcek->New quest or just select edit while in Kuharcek.
I hope this wasn't to confusing.
thx
regards,
seba