Sha256: a9dd541ba93d6a45801ecc49ab9f0d93bb7d9034b6fa402623b57cb5b4b1894d
Contents?: true
Size: 544 Bytes
Versions: 38
Compression:
Stored size: 544 Bytes
Contents
- entity_name = controller.controller_name.singularize - create_id = "create_#{entity_name}" crm.flick('empty', 'toggle'); crm.flip_form('#{create_id}'); - unless params[:cancel].true? $('##{create_id}').html('#{ j render(:partial => "new") }'); crm.set_title('#{create_id}', '#{ j t(create_id) }'); -# this function call is the only difference to normal new.js.haml crm.create_or_select_account(#{ request.referer =~ /\/accounts\// || @account.id.blank? }); - else crm.set_title('#{create_id}', '#{ j t(entity_name.pluralize) }');
Version data entries
38 entries across 19 versions & 2 rubygems