|
|
|
@ -17,8 +17,7 @@ define('forum/groups/list', ['forum/infinitescroll', 'translator'], function(inf
|
|
|
|
|
|
|
|
|
|
// Group creation
|
|
|
|
|
$('button[data-action="new"]').on('click', function() {
|
|
|
|
|
translator.translate('[[groups:new-group.group_name]]', function(translated) {
|
|
|
|
|
bootbox.prompt(translated, function(name) {
|
|
|
|
|
bootbox.prompt('[[groups:new-group.group_name]]', function(name) {
|
|
|
|
|
if (name && name.length) {
|
|
|
|
|
socket.emit('groups.create', {
|
|
|
|
|
name: name
|
|
|
|
@ -32,7 +31,6 @@ define('forum/groups/list', ['forum/infinitescroll', 'translator'], function(inf
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
var params = utils.params();
|
|
|
|
|
$('#search-sort').val(params.sort || 'alpha');
|
|
|
|
|
|
|
|
|
|