app/views/admin/groups/create.js.haml
- if @group.valid?
$('#create_group_arrow').html(crm.COLLAPSED);
$('#create_group_title').html('#{ j t(:groups) }');
$('#create_group').slideUp(250);
$('#groups').prepend('#{ j (render partial: "group", collection: [ @group ]) }');
$('##{dom_id(@group)}').effect("highlight", { duration:1500 });
- else
$('#create_group').html('#{ j render(partial: "new") }');
$('#group_name').focus();