Sha256: 94bda42494a0b9a92753d637a362b2270bc5b1089441714bf349a62e87a3a604

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

- case action_name
- when :new
  - form = js render('form', locals: {form_action: url_for(:create, format: :js)})
  rad.dialog().show('#{form}');

- when :edit
  - form = js render('form', locals: {form_action: update_path(@model, format: :js)})
  rad.inplace('##{@model.dom_id}').edit('#{form}');

- when :update
  - html = js render('show', object: @model)
  rad.inplace('##{@model.dom_id}').update('#{html}');

- when :access
  - html = js render('/tools/access')
  $("access_tool").replaceWith("#{html}");

- else
  - must_be.never_called

/ - when :context_menu
/   - html = js render('/bag/slots/context_menu')
/   $("#_context_menu").replaceWith("#{html}");

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_kit-0.0.10 app/views/controllers/items/actions.js.haml