';
+ _groups_str += '';
+ } else {
+ _groups_str += '';
+ _groups_str += '';
}
_groups_str += _gname;
+ _groups_str += '';
+ _new_labels += 1;
});
- $('#' + _form + 'groups').html(_groups_str);
+ $('#groups_field .labels').append(_groups_str);
+ var _modified = '{{ _T("Items in this list have been modified. Don't forget to save your changes.")|e('js') }}
';
+ if (_existing_labels != _new_labels) {
+ $('#groups_field').find('.message').remove();
+ $('#groups_field').append(_modified);
+ }
+ $('.message.with-transition').transition('flash');
$('.groups-selection').modal('hide');
});