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.14.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.14.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.13.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.13.5 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.13.4 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.13.3 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.13.2 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.13.1 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.7 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.6 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.5 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.4 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.3 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.2 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.12.1 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.11.2 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs
six-updater-web-0.11.1 lib/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs