I've created a minimal example:

The following code is supposed to show the "edit" and "close" buttons
at all times, and hide the "cancel" button when the file is tagged
with "Locked" AND when the file is on disk. But instead the "cancel"
button is hidden no matter what. What am I missing?


!ViewTemplateToolbar
<!--{{{-->
<div class='toolbar'>
        <span macro='toolbar editTiddler closeTiddler'></span>
        <span macro="hideWhen [[tiddler.tags.contains('Locked') ||
window.location.protocol!='file:']]">
                <span macro='toolbar cancelTiddler'></span>
        </span>
</div>
<!--}}}-->


I was under the understanding that || stands for the logical "and" but
perhaps it stands for "or" and in any case the behavior observed is
inconsistent with either interpretation, I did try to replace || with
&& but the same behavior was observed: hideWhen hides the "cancel"
button no matter what I place inside of [[]].

puzzled and feeling silly,

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