mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
Removed code for yourid
removed code that will give the current user id in a var called yourid
This commit is contained in:
@@ -2,8 +2,7 @@ define(function() {
|
|||||||
var Groups = {};
|
var Groups = {};
|
||||||
|
|
||||||
Groups.init = function() {
|
Groups.init = function() {
|
||||||
var yourid = templates.get('yourid'),
|
var createEl = document.getElementById('create'),
|
||||||
createEl = document.getElementById('create'),
|
|
||||||
createModal = $('#create-modal'),
|
createModal = $('#create-modal'),
|
||||||
createSubmitBtn = document.getElementById('create-modal-go'),
|
createSubmitBtn = document.getElementById('create-modal-go'),
|
||||||
createNameEl = $('#create-group-name'),
|
createNameEl = $('#create-group-name'),
|
||||||
@@ -172,6 +171,7 @@ define(function() {
|
|||||||
groupMembersEl.on('click', 'li[data-uid]', function() {
|
groupMembersEl.on('click', 'li[data-uid]', function() {
|
||||||
var uid = this.getAttribute('data-uid'),
|
var uid = this.getAttribute('data-uid'),
|
||||||
gid = detailsModal.attr('data-gid');
|
gid = detailsModal.attr('data-gid');
|
||||||
|
groups.getGidFromName('Administrators', function(err, gid) {});
|
||||||
bootbox.confirm('Are you sure you want to remove this user?', function(confirm) {
|
bootbox.confirm('Are you sure you want to remove this user?', function(confirm) {
|
||||||
if (confirm){
|
if (confirm){
|
||||||
socket.emit('admin.groups.leave', {
|
socket.emit('admin.groups.leave', {
|
||||||
|
|||||||
@@ -96,4 +96,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" template-variable="yourid" value="{yourid}" />
|
|
||||||
@@ -429,8 +429,7 @@ var nconf = require('nconf'),
|
|||||||
expand: true
|
expand: true
|
||||||
}, function (err, groups) {
|
}, function (err, groups) {
|
||||||
res.json(200, {
|
res.json(200, {
|
||||||
groups: groups,
|
groups: groups
|
||||||
yourid: req.user.uid
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user