Sha256: 2205710cc0868b02d92fe8f561c3c5f6059466ed00343ae06923a3a871b9a1ed

Contents?: true

Size: 385 Bytes

Versions: 13

Compression:

Stored size: 385 Bytes

Contents

if @virtual_class.errors.empty?
  page.insert_html :before, 'add_virtual_class', :partial=>'virtual_classes/li', :collection=>[@virtual_class]
  @virtual_class = VirtualClass.new
  page.replace_html 'add_virtual_class_form', :partial=>'virtual_classes/form'
  page << "$('virtual_class_name').focus();"
else
  page.replace 'add_virtual_class_form', :partial=>'virtual_classes/form'
end

Version data entries

13 entries across 13 versions & 1 rubygems

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