focus on topic creator after selecting metacode set
This commit is contained in:
parent
c2b21ecc13
commit
cac3a7c93b
2 changed files with 55 additions and 49 deletions
|
@ -276,6 +276,7 @@ function updateMetacodeSet(set, index, custom) {
|
|||
});
|
||||
|
||||
$('#lightbox_overlay').hide();
|
||||
$('#topic_name').focus();
|
||||
|
||||
var mdata = {
|
||||
"metacodes": {
|
||||
|
@ -288,14 +289,10 @@ function updateMetacodeSet(set, index, custom) {
|
|||
url: "/user/updatemetacodes",
|
||||
data: mdata,
|
||||
success: function (data) {
|
||||
console.log('success updating metacodes');
|
||||
//setTimeout(function () {
|
||||
// $('.metacodeTitle').hide();
|
||||
// $('.showcard .icon').css('z-index', '1');
|
||||
//}, 500);
|
||||
console.log('selected metacodes saved');
|
||||
},
|
||||
error: function () {
|
||||
alert('failed to update metacodes');
|
||||
console.log('failed to save selected metacodes');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -42,7 +42,10 @@ function start() {
|
|||
|
||||
// this will ping a new person with awareness of who's already on the map
|
||||
socket.on('updateNewMapperList', function (data) {
|
||||
var existingUser = { userid: data.userid, username: data.username };
|
||||
var existingUser = {
|
||||
userid: data.userid,
|
||||
username: data.username
|
||||
};
|
||||
socket.broadcast.emit(data.userToNotify + '-' + data.mapid + '-UpdateMapperList', existingUser);
|
||||
});
|
||||
|
||||
|
@ -52,7 +55,10 @@ function start() {
|
|||
socket.set('userid', data.userid);
|
||||
socket.set('username', data.username);
|
||||
|
||||
var newUser = { userid: data.userid, username: data.username };
|
||||
var newUser = {
|
||||
userid: data.userid,
|
||||
username: data.username
|
||||
};
|
||||
|
||||
socket.broadcast.emit('maps-' + data.mapid + '-newmapper', newUser);
|
||||
});
|
||||
|
@ -66,7 +72,10 @@ function start() {
|
|||
socket.get('username', function (err, name) {
|
||||
socketUserName = name;
|
||||
});
|
||||
var data = { username: socketUserName, userid: socketUserID };
|
||||
var data = {
|
||||
username: socketUserName,
|
||||
userid: socketUserID
|
||||
};
|
||||
socket.get('mapid', function (err, mapid) {
|
||||
socket.broadcast.emit('maps-' + mapid + '-lostmapper', data);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue