Sha256: af5093a2f49fc3d2a6b976b21448b2a4e3996b7a7921620aa58108833176786b

Contents?: true

Size: 526 Bytes

Versions: 13

Compression:

Stored size: 526 Bytes

Contents

if @errors || !@node.errors.empty?
  page.replace_html "form_errors", :inline => @errors ? render_errors : error_messages_for(@node)
else
  page << "try {"
  page.replace_html 'original_caution', :inline=>""
  page << "} catch(err) {}"
  page.replace 'messages', :inline => flash_messages
  page['node_v_id'].value = @node.v_id
  if flash[:notice]
    flash[:notice] = nil
    page.visual_effect :fade, 'notice', :duration => 5.0
  else
    flash[:error] = nil
    page.visual_effect :fade, 'error', :duration => 5.0
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 app/views/versions/backup.rjs
zena-0.16.8 app/views/versions/backup.rjs
zena-0.16.7 app/views/versions/backup.rjs
zena-0.16.6 app/views/versions/backup.rjs
zena-0.16.5 app/views/versions/backup.rjs
zena-0.16.4 app/views/versions/backup.rjs
zena-0.16.3 app/views/versions/backup.rjs
zena-0.16.2 app/views/versions/backup.rjs
zena-0.16.1 app/views/versions/backup.rjs
zena-0.16.0 app/views/versions/backup.rjs
zena-0.15.2 app/views/versions/backup.rjs
zena-0.15.1 app/views/versions/backup.rjs
zena-0.15.0 app/views/versions/backup.rjs