You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
471 B
11 lines
471 B
5 years ago
|
var $container = $('.manager-group-list-body');
|
||
|
var $managerGroupItem = $container.find('.manager-group-item-<%= @manager_group.id %>');
|
||
|
|
||
|
|
||
|
if($managerGroupItem.length > 0){
|
||
|
$managerGroupItem.find('.manager-group-name').html('<%= @manager_group.name %>');
|
||
|
} else {
|
||
|
$container.append('<%= j(render partial: 'partners/shared/manager_group_item', locals: { manager_group: @manager_group }) %>');
|
||
|
}
|
||
|
$('.partner-save-manager-group-modal').modal('hide');
|
||
|
showSuccessFlash();
|