On Wednesday, June 5, 2013 6:54:40 AM UTC+2, Arc Acorn wrote:
>
> Which seems to be here:
> else {
> var d = createTiddlyElement(place,"span",null,"tab tabUnselected");
> var btn = createTiddlyButton(d,title,config.macros.tiddlersBar.tooltip + 
> title,config.macros.tiddlersBar.onSelectTab);
> btn.setAttribute("tiddler", title);
> if (previous=="active" && config.macros.tiddlersBar.nextKey) 
> btn.setAttribute("accessKey",config.macros.tiddlersBar.previousKey);
> previous=btn;
> }
>
> Using the CheckboxPlugin: http://www.tiddlytools.com/#CheckboxPlugin
>
> wikify("[x("+title+"|pinned)]",place);
>

Hi Arc,

I you would have provided a simple testcase TW, it would be much easier to 
run a fast test. Everyone, who wants to help, needs to build a sandbox for 
testing on there own. For me it's not possible to provide help (that 
works), without testing it. To be honest, this was the reason, why I didn't 
respond to the first post. 

You are right, the problem is the place variable. In this case, the place 
variable is the DOM element, that contains the whole bar. That's the 
reason, why all your checkboxes are created at the tab "level". 

try this:

            story.forEachTiddler(function(title,e){
                if (title==config.macros.tiddlersBar.currentTiddler){
                    var d = createTiddlyElement(null,"span",null,"tab 
tabSelected");

// see this
                    // comment the following line, if you don't want pins 
for active tabs
                    wikify("[x("+title+"|pinned)]",d);

                    
config.macros.tiddlersBar.createActiveTabButton(d,title);
                    if (previous && config.macros.tiddlersBar.previousKey) 
previous.setAttribute("accessKey",config.macros.tiddlersBar.nextKey);
                    previous = "active";
                }
                else {
                    var d = createTiddlyElement(place,"span",null,"tab 
tabUnselected");
// see next line
                    wikify("[x("+title+"|pinned)]",d);

                    var btn = 
createTiddlyButton(d,title,config.macros.tiddlersBar.tooltip + 
title,config.macros.tiddlersBar.onSelectTab);


As you can see, I did use the "var d" element, that contains the tab and 
the pin has to be the first element that needs to be created. Otherwise it 
doesn't work well. 

Be sure you did create a tiddler eg: closeAllPatch, tagged systemConfig 
with the code from Eric.

have fun!
mario

http://pmario.tiddlyspace.com/do-me-a-favor


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to