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.17.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.17.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.16.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.16.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.16.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.15.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.15.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.15.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.15.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.12 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.10 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.9 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.8 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs