Sha256: bfeecec7b0c9d0ebbc0901bfd25b2adad95e9ab5fc036a849fcb321225617016

Contents?: true

Size: 683 Bytes

Versions: 97

Compression:

Stored size: 683 Bytes

Contents

associated_form = render :partial => "#{subform_partial_for_column(@column)}_record", :locals => {:scope => @scope, :parent_record => @parent_record, :column => @column, :locked => @record.new_record? && @column.singular_association?}

if @column.singular_association?
  page << %|
    associated = #{associated_form.to_json};
    if (current = $$('##{sub_form_list_id(:association => @column.name)} .association-record')[0]) {
      Element.update(current, associated)
    } else {
      new Insertion.Top('#{sub_form_list_id(:association => @column.name)}', associated)
    }
  |
else
  page.insert_html :bottom, sub_form_list_id(:association => @column.name), associated_form
end

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
six-updater-web-0.20.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.20.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.20.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.20.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.19.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.18.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.18.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.18.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
lockbox_middleware-1.2.1 vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs