function()
{
  var app = $$(this).app;
  var box = this;
  var docid = this.parentNode.getAttribute("docid");
  app.db.openDoc(docid, {
      success: function(d)
      {
        if(box.checked)
        {
          d["status"] = "done";
        }
        else
        {
          d["status"] = "wip";
        }
        app.db.saveDoc(d, {
          success: function(r)
          {
            $('li[docid|="'+docid+'"]').slideUp("fast");
          }
        });
      }
  });
}

@@ -154,16 +154,18 @@
 nction(d
+oc
 )%0A      
@@ -202,33 +202,190 @@
     %7B%0A          
-d
+var d = new Date();%0A          var today = (d.getMonth() + 1) + %22/%22 + d.getDate() + %22/%22 + d.getFullYear();%0A          doc%5B%22completed_at%22%5D = today;%0A          doc
 %5B%22status%22%5D = %22do
@@ -433,16 +433,18 @@
        d
+oc
 %5B%22status
@@ -455,16 +455,52 @@
  %22wip%22;%0A
+          doc%5B%22completed_at%22%5D = %22%22;%0A
         
@@ -525,16 +525,18 @@
 aveDoc(d
+oc
 , %7B%0A    

implement "completed_at" tagging