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
six-updater-web-0.24.15 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.14 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.13 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.12 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.11 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.10 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.9 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.8 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
brisk-bills-0.7.0 vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.24.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.23.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.23.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs