Sha256: 34ea624e10c20a7df91eda356797b1351f64260b6a5ce1be1a0d8f99670c2958

Contents?: true

Size: 759 Bytes

Versions: 17

Compression:

Stored size: 759 Bytes

Contents

@options = { :scaffold_id => params[:scaffold_id], :action => "update", :id => params[:id] }
@view_options = @options.merge(:action => "view")

if @successful
  page.hide element_row_id(@view_options)
  page.insert_html :bottom, scaffold_tbody_id(@options), :partial => 'new_edit'
  page << "new TableRow.MoveAfter('#{element_row_id(@view_options)}', '#{element_row_id(@options)}');"  
  page.show element_row_id(@options)
  page << "Form.focusFirstElement('#{element_form_id(@options)}');"
  page.visual_effect :highlight, element_cell_id(@options)
  page.replace_html element_messages_id(@options), :partial => 'form_messages'
else
  page.replace_html scaffold_messages_id(@options), :partial => 'messages'
end

page.hide loading_indicator_id(@view_options)

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ajax_scaffold_generator-3.0.0 templates/rjs_edit.rjs
ajax_scaffold_generator-3.0.1 templates/rjs_edit.rjs
ajax_scaffold_generator-3.0.2 templates/rjs_edit.rjs
ajax_scaffold_generator-3.0.3 templates/rjs_edit.rjs
ajax_scaffold_generator-3.0.4 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.0 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.1 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.2 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.3 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.4 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.5 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.6 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.7 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.8 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.9 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.10 templates/rjs_edit.rjs
ajax_scaffold_generator-3.1.11 templates/rjs_edit.rjs