Skip to content

Commit

Permalink
Merge pull request #13209 from dimagi/dsr-intr1
Browse files Browse the repository at this point in the history
trigger correct alert box
  • Loading branch information
Nick Pellegrino committed Sep 13, 2016
2 parents eb77c10 + 2b6de6a commit 64a27cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions corehq/apps/groups/templates/groups/group_members.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@
message = django.gettext('Successfully saved ') + name.toLowerCase() + '.';
unsavedChanges[name] = false;
} else {
alertClass = 'alert-error';
alertClass = 'alert-danger';
message = django.gettext('Failed to save ') + name.toLowerCase() + '.';
}
$(id).find(':button').enableButton();
$('.alert').removeClass('alert-error alert-success alert-info').addClass(alertClass);
$('.alert').html(message).show();
$('#save-alert').removeClass('alert-error alert-success alert-info').addClass(alertClass);
$('#save-alert').html(message).show();
$('#editGroupSettings').modal('hide');

if (gaEventLabel){
ga_track_event('Editing Group', gaEventLabel, '{{group.get_id|escapejs}}');
}
Expand Down Expand Up @@ -153,6 +152,8 @@
{% endblock %}

{% block page_content %}
<p id="save-alert" class="alert" hidden="hidden">
</p>
{% if group.is_deleted %}
<div class="alert alert-info">
{% blocktrans%}
Expand Down

0 comments on commit 64a27cd

Please sign in to comment.