Sha256: cf0ed94188bd3a87114bac0772738e24fdf40be3c6e189be45a4bd867625ae51

Contents?: true

Size: 611 Bytes

Versions: 9

Compression:

Stored size: 611 Bytes

Contents

id = called_from_landing_page? ? "edit_account" : dom_id(@account)

if @account.errors.empty?
  if called_from_landing_page?
    page.call "crm.flip_form", :edit_account
    page.call "crm.set_title", :edit_account, @account.name
    page << refresh_sidebar(:show, :summary)
  else
    page[id].replace :partial => "account", :collection => [ @account ]
    page[id].visual_effect :highlight, :duration => 1.0
    page << refresh_sidebar(:index, :filters)
  end
else  
  page[id].replace_html :partial => "edit"
  page[id].visual_effect :shake, :duration => 0.25, :distance => 6
  page[:account_name].focus
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/accounts/update.js.rjs
fat_free_crm-0.12.2 app/views/accounts/update.js.rjs
fat_free_crm-0.12.1 app/views/accounts/update.js.rjs
fat_free_crm-0.12.0 app/views/accounts/update.js.rjs
fat_free_crm-0.11.4 app/views/accounts/update.js.rjs
fat_free_crm-0.11.3 app/views/accounts/update.js.rjs
fat_free_crm-0.11.2 app/views/accounts/update.js.rjs
fat_free_crm-0.11.1 app/views/accounts/update.js.rjs
fat_free_crm-0.11.0 app/views/accounts/update.js.rjs