Sha256: c4caaa458dbfa5164d4371712764eac60e2032ebd5e94222be032f6badc384d6

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

@options = { :scaffold_id => params[:scaffold_id], :action => "view", :id => params[:id] }

if @successful
  page.remove element_row_id(@options)
  page << "AjaxScaffold.displayMessageIfEmpty('#{scaffold_tbody_id(@options)}','#{empty_message_id(@options)}');"   
  page << "AjaxScaffold.stripe('#{scaffold_tbody_id(@options)}');" 
else
  page.hide loading_indicator_id(@options)
end

page.replace_html scaffold_messages_id(@options), :partial => scaffold_partial_path('messages')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ajax_scaffold_plugin-3.2.0 app/views/ajax_scaffold/destroy.rjs
ajax_scaffold_plugin-3.2.1 app/views/ajax_scaffold/destroy.rjs
ajax_scaffold_plugin-3.2.3 app/views/ajax_scaffold/destroy.rjs
ajax_scaffold_plugin-3.2.4 app/views/ajax_scaffold/destroy.rjs
ajax_scaffold_plugin-3.2.2 app/views/ajax_scaffold/destroy.rjs