mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-08 21:50:40 +01:00
added missing file
This commit is contained in:
21
public/src/client/account/groups.js
Normal file
21
public/src/client/account/groups.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
/* globals define, app, socket, utils */
|
||||
|
||||
define('forum/account/groups', ['forum/account/header'], function(header) {
|
||||
var AccountTopics = {};
|
||||
|
||||
AccountTopics.init = function() {
|
||||
header.init();
|
||||
|
||||
var groupsEl = $('#groups-list');
|
||||
|
||||
groupsEl.on('click', '.list-cover', function() {
|
||||
var groupSlug = $(this).parents('[data-slug]').attr('data-slug');
|
||||
|
||||
ajaxify.go('groups/' + groupSlug);
|
||||
});
|
||||
};
|
||||
|
||||
return AccountTopics;
|
||||
});
|
||||
Reference in New Issue
Block a user