#178 new
Sean Farrell

Hiding company selector when creating new opportunity

Reported by Sean Farrell | March 19th, 2010 @ 09:55 AM

Javascript error when loading create opportunity page means that it is not possible to select a company when using

  1. Click on tab 'Opportunity'
  2. Click on 'Create a new opportunity'

Expect to see Company (create new or select existing):
[_______________]

Instead see
Expect to see Company (create new or select existing): (create new or select existing): :

Error message indicated that we are unable to find the object with id called #account_selector, and it looks like things in views/opportunities/_top_section.html.haml have been rewritten to allow the code to be internationalised, by including both versions of the text and showing/hiding instead of including the text in the javascript.

Suggested fix - sorry I couldn't work out where the source is for the cached javascript.

in all.js @function create_account: function(and_focus)

  • // $("account_selector").update(" (create new or select existing):");
  • $("account_create_title").show();
  • $("account_select_title").hide();

in all.js @function select_account: function(and_focus)

  • $("account_selector").update(" (create new or select existing):");
  • $("account_create_title").hide();
  • $("account_select_title").show();

No comments found

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby on Rails CRM platform for Web 2.0 and beyond

People watching this ticket

Pages