|
|
@ -17,7 +17,7 @@ define('forum/groups/list', ['forum/infinitescroll'], function(infinitescroll) {
|
|
|
|
|
|
|
|
|
|
|
|
// Group creation
|
|
|
|
// Group creation
|
|
|
|
$('button[data-action="new"]').on('click', function() {
|
|
|
|
$('button[data-action="new"]').on('click', function() {
|
|
|
|
bootbox.prompt('[[group:new-group.group_name]]', function(name) {
|
|
|
|
bootbox.prompt('[[groups:new-group.group_name]]', function(name) {
|
|
|
|
if (name && name.length) {
|
|
|
|
if (name && name.length) {
|
|
|
|
socket.emit('groups.create', {
|
|
|
|
socket.emit('groups.create', {
|
|
|
|
name: name
|
|
|
|
name: name
|
|
|
|