fix: #7231, missing success alert on group name change in ACP

This commit is contained in:
Julian Lam
2019-02-09 14:50:09 -05:00
parent fe63fca846
commit 0fffcb3855

View File

@@ -102,11 +102,11 @@ define('admin/manage/group', [
var newName = $('#change-group-name').val();
// If the group name changed, change url
if (groupName === newName) {
app.alertSuccess('[[admin/manage/groups:edit.save-success]]');
} else {
if (groupName !== newName) {
ajaxify.go('admin/manage/groups/' + encodeURIComponent(newName), undefined, true);
}
app.alertSuccess('[[admin/manage/groups:edit.save-success]]');
});
return false;
});