Sha256: f8acf7f37b451c062ce2195bbcc8ff1c56120be5a5f238c84f66a681c9763882
Contents?: true
Size: 541 Bytes
Versions: 26
Compression:
Stored size: 541 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
26 entries across 13 versions & 1 rubygems