Sha256: a54095cd1ba95c9b83efcc6d70c7f8dbd43c0692a95b959664aee1a514770a4d

Contents?: true

Size: 935 Bytes

Versions: 101

Compression:

Stored size: 935 Bytes

Contents

page.insert_html :top, active_scaffold_tbody_id, :partial => 'list_record', :locals => {:record => @record}
page << "ActiveScaffold.stripe($('#{active_scaffold_tbody_id}'))"
page << "ActiveScaffold.hide_empty_message('#{active_scaffold_tbody_id}','#{empty_message_id}');"
page << "ActiveScaffold.increment_record_count('#{active_scaffold_id}');"

if (form_stays_open = true)
  # why not just re-render the form? that wouldn't utilize a possible do_new override which sets default values.
  page << "$('#{element_form_id}').reset()"
  page.replace_html element_messages_id(:action => :add_existing), :partial => 'form_messages'
  # have to delay the focus, because there's no "firstElement" in prototype until at least one element is not disabled
  page.delay 0.1 do
    page << "Form.focusFirstElement('#{element_form_id}');"
  end
else
  page << "$$('##{element_form_id(:action => :new_existing)} a.cancel').first().link.close();"
end

Version data entries

101 entries across 101 versions & 4 rubygems

Version Path
lockbox_middleware-1.2.1 vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.17.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.17.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.17.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.17.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.16.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.16.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.16.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.15.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.15.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.15.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.15.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.12 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.10 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
brisk-bills-0.6.0 vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.9 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.8 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.14.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs