Skip to content

Node.js based forum software built for the modern web

414 B
Raw Blame
'use strict';


define('forum/account/groups', ['forum/account/header'], function (header) {
	const AccountTopics = {};

	AccountTopics.init = function () {
		header.init();

		const groupsEl = $('#groups-list');

		groupsEl.on('click', '.list-cover', function () {
			const groupSlug = $(this).parents('[data-slug]').attr('data-slug');

			ajaxify.go('groups/' + groupSlug);
		});
	};

	return AccountTopics;
});