Hi everyone (@Osmosoft),
I think it were beneficial if tag buttons would indicate whether a tag
is being used or not...
function createTagButton(place,tag,excludeTiddler,title,tooltip)
{
var btn = createTiddlyButton(place,title||tag,(tooltip||
config.views.wikified.tag.tooltip).format([tag]),onClickTag);
//NEW CODE
addClass(btn,store.getTaggedTiddlers(tag).length>0?'hastags':'hasnotags');
//DONE
btn.setAttribute("tag",tag);
if(excludeTiddler)
btn.setAttribute("tiddler",excludeTiddler);
return btn;
}
Cheers, Tobias.
--
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.