Hello,
I'm working on a "monkeyTagger", 2.4 compatible, and I came across one
problem :
onTagClick : function(ev){
var tag = this.getAttribute("tag");
var tiddler = store.getTiddler(this.getAttribute("tiddler"));
// if (!story.isDirty(this.tiddler))
// store.setTiddlerTag(tiddler.title,!tiddler.tags.contains
(tag),tag); // this one works in VIEW mode
// else
story.setTiddlerTag(tiddler.title,tag,0); // this one
workd in EDIT
mode
return false;
}
like it's said in comments, I found that it's not the same function to
toggle tag depending on the edit mode of the tiddler. But "isDirty"
don't really tell's me if it's currently in EDIT mode or not...
How can I do ?
regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---