Sha256: 405be56d19c033aeb4719df6a8b8c917a0803d26869ab7e75e40f51b8bc65e51

Contents?: true

Size: 749 Bytes

Versions: 5

Compression:

Stored size: 749 Bytes

Contents

if @account.valid?
  page[:create_account_arrow].replace_html "►"
  page[:create_account_title].replace_html t(:accounts)
  page.visual_effect :toggle_blind, :create_account, :duration => 0.3, :afterFinish => 'function(effect) {effect.element.update("")}'
  page.insert_html :top, :accounts, :partial => "account", :collection => [ @account ]
  page[dom_id(@account)].visual_effect :highlight, :duration => 1.5
  page << refresh_sidebar(:index, :filters)
  page[:paginate].replace_html :partial => "shared/paginate_with_per_page"
  page.call "crm.flick", :empty, :remove
else
  page[:create_account].replace_html :partial => "new"
  page[:create_account].visual_effect :shake, :duration => 0.25, :distance => 6
  page[:account_name].focus
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/accounts/create.js.rjs
fat_free_crm-0.12.2 app/views/accounts/create.js.rjs
fat_free_crm-0.12.1 app/views/accounts/create.js.rjs
fat_free_crm-0.12.0 app/views/accounts/create.js.rjs
fat_free_crm-0.11.4 app/views/accounts/create.js.rjs