Sha256: 59ae52bbec1b51744a4f785e86d65bb7aced138d7cd8d98238153bf3f399672c

Contents?: true

Size: 335 Bytes

Versions: 13

Compression:

Stored size: 335 Bytes

Contents

if @relation.errors.empty?
  page.insert_html :before, 'add_relation', :partial=>'relations/li', :collection=>[@relation]
  @relation = Relation.new
  page.replace_html 'add_relation_form', :partial=>'relations/form'
  page << "$('relation_source_role').focus();"
else
  page.replace 'add_relation_form', :partial=>'relations/form'
end

Version data entries

13 entries across 13 versions & 1 rubygems

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