<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -65,6 +65,8 @@ module ApplicationHelper
         if params[:done] &amp;&amp; params[:action] == 'create'
           page.toggle &quot;#{params[:dom_id]}_form&quot;, &quot;#{params[:dom_id]}_add&quot;
           page &lt;&lt; params[:done]
+        elsif params[:done]
+          page &lt;&lt; params[:done]
         end
       end
     else
@@ -94,6 +96,7 @@ module ApplicationHelper
         end
       when 'update'
         page.replace params[:dom_id], :file =&gt; fullpath_from_template_url + &quot;.erb&quot;
+        page &lt;&lt; params[:done] if params[:done]
       when 'destroy'
         page.visual_effect :highlight, params[:dom_id], :duration =&gt; 0.3
         page.visual_effect :fade, params[:dom_id], :duration =&gt; 0.3</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ listing_with_link:
 tagged_query:
   context:
     cat: 'blue'
-  src: &quot;&lt;r:context select='nodes where tag = \&quot;[param:cat]\&quot; in site' do='each' join=', ' do='[name]'/&gt;&quot;
+  src: &quot;&lt;r:context select='nodes where tag = param:cat in site' do='each' join=', ' do='[name]'/&gt;&quot;
   res: &quot;bird, status&quot;
   
 images_tagged_blue:</diff>
      <filename>bricks/tags/test/zafu/tags.yml</filename>
    </modified>
    <modified>
      <diff>@@ -938,6 +938,9 @@ END_TXT
           elsif params[:done]
             hidden_fields['done'] = CGI.escape(params[:done]) # .gsub(&quot;NODE_ID&quot;, @node.zip).gsub(&quot;PARENT_ID&quot;, @node.parent_zip)
           end
+        else
+          # ajax form, not in 'add'
+          hidden_fields['done'] = CGI.escape(@params[:done]) if @params[:done]
         end
       else
         # no ajax
@@ -3050,7 +3053,11 @@ END_TXT
         end
       end 
       
-      res[:id]   = &quot;#{erb_dom_id}_#{attribute}&quot; if @context[:dom_prefix]
+      if @context[:dom_prefix]
+        res[:id]   = &quot;#{erb_dom_id}_#{attribute}&quot;
+      else
+        res[:id]   = params[:id] if params[:id]
+      end
       
       [:size, :style, :class].each do |k|
         res[k] = params[k] if params[k]</diff>
      <filename>lib/parser/lib/rules/zena.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7cbb2c24347a4b0f55efb009714d78d297bbb288</id>
    </parent>
  </parents>
  <author>
    <name>Gaspard Bucher</name>
    <email>gaspard@teti.ch</email>
  </author>
  <url>http://github.com/zena/zena/commit/18aeb727bc7f1d45fa4bd205a9d3fb557b679116</url>
  <id>18aeb727bc7f1d45fa4bd205a9d3fb557b679116</id>
  <committed-date>2008-11-29T02:20:49-08:00</committed-date>
  <authored-date>2008-11-29T02:20:49-08:00</authored-date>
  <message>Added support for &quot;done&quot; javascript code to execute after a POST or PUT.</message>
  <tree>35ef6b7bd330175bfc4ebd0541983da33dcf10ec</tree>
  <committer>
    <name>Gaspard Bucher</name>
    <email>gaspard@teti.ch</email>
  </committer>
</commit>
