Sha256: 14cf134c5442c9e6227b53a71b9e79d8c12165b6f5559e78dc27f4e8c59809b9

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

page.call "crm.flick", :empty, :toggle
page.call "crm.flip_form", :create_opportunity

unless params[:cancel].true?
  page[:create_opportunity].replace_html :partial => "new"
  page.call "crm.set_title", :create_opportunity, t(:create_opportunity)
  # Opportunity 'create' form defaults to select account instead of create new account
  page.call "crm.create_or_select_account", request.referer =~ /\/accounts\// || @account.id.blank?
  hook(:new_opportunity_rjs, self, :page => page)
else
  page.call "crm.set_title", :create_opportunity, t(:opportunities)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/opportunities/new.js.rjs
fat_free_crm-0.12.2 app/views/opportunities/new.js.rjs
fat_free_crm-0.12.1 app/views/opportunities/new.js.rjs
fat_free_crm-0.12.0 app/views/opportunities/new.js.rjs
fat_free_crm-0.11.4 app/views/opportunities/new.js.rjs