Hi Stephen,
After I posted my modifications, I got the dreaded red javascript error. I then deleted my original message from Google Groups so as not to lead anyone astray.
But then I realized the error was the result of me failing to follow expected procedure (use the "Add a new Task" button). I had tried instead to simply insert <<dailytasks>> into an existing tiddler.
That does work, but one needs also to add the field "lastdate", with today's date (m/d/yy) as the contents.
Thanks again for a really useful tool!
Here are my crude copy/paste edits again. I liked the (
Saturday)
in the tooltip over the boxes but for my running list I only needed to
capture m/d/yy. So I created a clone of var darray2 with the same
initial definition as darray
var darray2= ["O","O","O","O","O","O","O","O","O","O"];
Then I could add a different date format to darray2:
darray2[10-i]=mon+"/"+day+"/"+yr;
With tip2=darray2[i], the buttons can append (or remove) m/d/yy in the field "datestamp".
(When
adding multiple dates, they do need to be clicked in order from oldest
to most recent - if that is what you want - since a sort[] would not
treat them as actual dates.)
for (i=0 ; i<10 ; i++)
{
//set tooltip to matching darray entry
var tip=darray[i];
var tip2=darray2[i];
if (barray[i]=="X") {
// If it was an X then use the modified cancel button
output += '<$button class="tc-btn-invisible tc-tiddlylink" tooltip="'+tip+'"><$action-listops $field="datestamp" $subfilter="-'+tip2+'"/><$action-setfield $field="toggled" $value="'+i+'" />{{$:/core/images/done}}</$button> ' ;
} else {
// not an X so must be an O use modified circle
output += '<$button class="tc-btn-invisible tc-tiddlylink" tooltip="'+tip+'"><$action-listops $field="datestamp" $subfilter="'+tip2+'"/><$action-setfield $field="toggled" $value="'+i+'" />{{$:/core/images/open}}</$button> ' ;}
} // end for i loop
cmari
My tiddler text: