Changeset 1161

Show
Ignore:
Timestamp:
2008-09-18 10:05:46 (4 months ago)
Author:
gaspard
Message:

commit f05f8ddef0d9317c9ee49fdf5c7c6f6cbd009b82
Author: Gaspard Bucher <gaspard@teti.ch>

Fixed bug where the wrong id was used to update a DOM in [add].
Inserted 'u_id' field in the hidden fields of the form.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/parser/lib/rules/zena.rb

    r1154 r1161  
    971971            hidden_fields['u_url']   = target.template_url 
    972972            hidden_fields['udom_id'] = target.erb_dom_id 
     973            hidden_fields['u_id']    = "<%= #{@context[:parent_node]}.zip %>" if @context[:in_add] 
    973974          end 
    974975        elsif (block = ancestor('block')) && node_kind_of?(DataEntry) 
  • trunk/test/fixtures/files/Node-test.zafu

    r1154 r1161  
    143143<h3>drop reload with param (comment on dropped)</h3> 
    144144 
     145<r:images in='site' do='each' draggable='true' do='img' mode='tiny'/> 
     146 
    145147<div style='border:1px solid #400; min_width:100px; min_height:100px;' do='drop' change='params' d='[id]' do='if' test='param:d'> 
    146148  <r:node where='id eq param:d' in='site'> 
     
    164166 
    165167<hr/> 
     168 
     169<h2>add in updated DOM</h2> 
     170 
     171<div id='add_and_update' do='block'> 
     172  <h3 do='title'/> 
     173  <ul do='pages'> 
     174    <li do='each' do='[v_title]'/> 
     175    <li do='add' klass='Page' update='add_and_update'/> 
     176  </ul> 
     177</div> 
     178 
     179<r:projects in='site' do='each' join=', ' do='link' update='add_and_update'/> 
     180 
     181<hr/> 
     182 
    166183<h2>notes & comments</h2> 
    167184