Sha256: 022bdb6d013f937fc993453604a8ea3075b6028b148747194f7993393e882ea1

Contents?: true

Size: 559 Bytes

Versions: 15

Compression:

Stored size: 559 Bytes

Contents

if @errors || !@node.errors.empty?
  page.replace_html "form_errors", :inline => @errors ? render_errors : error_messages_for(:node, :object => @node)
else
  page << "try {"
  page.replace_html 'original_caution', :inline=>""
  page << "} catch(err) {}"
  page.replace 'messages', :inline => flash_messages(:page => page)
  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

15 entries across 15 versions & 1 rubygems

Version Path
zena-1.2.8 app/views/versions/backup.rjs
zena-1.2.7 app/views/versions/backup.rjs
zena-1.2.6 app/views/versions/backup.rjs
zena-1.2.5 app/views/versions/backup.rjs
zena-1.2.4 app/views/versions/backup.rjs
zena-1.2.3 app/views/versions/backup.rjs
zena-1.2.2 app/views/versions/backup.rjs
zena-1.2.1 app/views/versions/backup.rjs
zena-1.2.0 app/views/versions/backup.rjs
zena-1.1.3 app/views/versions/backup.rjs
zena-1.1.2 app/views/versions/backup.rjs
zena-1.1.1 app/views/versions/backup.rjs
zena-1.1.0 app/views/versions/backup.rjs
zena-1.0.0 app/views/versions/backup.rjs
zena-1.0.0.rc3 app/views/versions/backup.rjs