|
|
|
@ -134,7 +134,7 @@ define('forum/groups/details', ['iconSelect', 'vendor/colorpicker/colorpicker',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Details.deleteGroup = function() {
|
|
|
|
|
bootbox.confirm('Are you sure you want to delete the group: ' + ajaxify.variables.get('group_name'), function(confirm) {
|
|
|
|
|
bootbox.confirm('Are you sure you want to delete the group: ' + utils.escapeHTML(ajaxify.variables.get('group_name')), function(confirm) {
|
|
|
|
|
if (confirm) {
|
|
|
|
|
bootbox.prompt('Please enter the name of this group in order to delete it:', function(response) {
|
|
|
|
|
if (response === ajaxify.variables.get('group_name')) {
|
|
|
|
@ -142,7 +142,7 @@ define('forum/groups/details', ['iconSelect', 'vendor/colorpicker/colorpicker',
|
|
|
|
|
groupName: ajaxify.variables.get('group_name')
|
|
|
|
|
}, function(err) {
|
|
|
|
|
if (!err) {
|
|
|
|
|
app.alertSuccess('[[groups:event.deleted, ' + ajaxify.variables.get('group_name') + ']]');
|
|
|
|
|
app.alertSuccess('[[groups:event.deleted, ' + utils.escapeHTML(ajaxify.variables.get('group_name')) + ']]');
|
|
|
|
|
ajaxify.go('groups');
|
|
|
|
|
} else {
|
|
|
|
|
app.alertError(err.message);
|
|
|
|
|