From a86ff15f7b2d53ad38f1613327cd456511e7e3ca Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 20 Jan 2014 20:54:19 +0000 Subject: [PATCH] Removed code for yourid removed code that will give the current user id in a var called yourid --- public/src/forum/admin/groups.js | 4 ++-- public/templates/admin/groups.tpl | 3 +-- src/routes/admin.js | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/public/src/forum/admin/groups.js b/public/src/forum/admin/groups.js index 94817826b0..136d9ce363 100644 --- a/public/src/forum/admin/groups.js +++ b/public/src/forum/admin/groups.js @@ -2,8 +2,7 @@ define(function() { var Groups = {}; Groups.init = function() { - var yourid = templates.get('yourid'), - createEl = document.getElementById('create'), + var createEl = document.getElementById('create'), createModal = $('#create-modal'), createSubmitBtn = document.getElementById('create-modal-go'), createNameEl = $('#create-group-name'), @@ -172,6 +171,7 @@ define(function() { groupMembersEl.on('click', 'li[data-uid]', function() { var uid = this.getAttribute('data-uid'), gid = detailsModal.attr('data-gid'); + groups.getGidFromName('Administrators', function(err, gid) {}); bootbox.confirm('Are you sure you want to remove this user?', function(confirm) { if (confirm){ socket.emit('admin.groups.leave', { diff --git a/public/templates/admin/groups.tpl b/public/templates/admin/groups.tpl index 6984e97254..40ceae9669 100644 --- a/public/templates/admin/groups.tpl +++ b/public/templates/admin/groups.tpl @@ -95,5 +95,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/src/routes/admin.js b/src/routes/admin.js index d7c1c7863f..0b23680cd0 100644 --- a/src/routes/admin.js +++ b/src/routes/admin.js @@ -429,8 +429,7 @@ var nconf = require('nconf'), expand: true }, function (err, groups) { res.json(200, { - groups: groups, - yourid: req.user.uid + groups: groups }); }); });