jshint compliance for toolbar.js

pull/1/head
ansuz 9 years ago
parent 3b8238ef3b
commit 06a3b63923

@ -134,20 +134,20 @@ define([
var data = (userData) ? (userData[user] || null) : null; var data = (userData) ? (userData[user] || null) : null;
var userName = (data) ? data.name : null; var userName = (data) ? data.name : null;
if(userName) { if(userName) {
if(i === 0) list = ' : '; if(i === 0) { list = ' : '; }
list += userName + ', '; list += userName + ', ';
i++; i++;
} }
} }
}); });
return (i > 0) ? list.slice(0, -2) : list; return (i > 0) ? list.slice(0, -2) : list;
} };
var createChangeName = function($container, userList, buttonID) { var createChangeName = function($container, userList, buttonID) {
var id = uid(); var id = uid();
userList.innerHTML = '<span class="cke_toolgroup" id="' + buttonID + '"><a id="' + USERNAME_BUTTON_ID + '" class="cke_button">Change name</a></span><span id="' + id + '"></span>'; userList.innerHTML = '<span class="cke_toolgroup" id="' + buttonID + '"><a id="' + USERNAME_BUTTON_ID + '" class="cke_button">Change name</a></span><span id="' + id + '"></span>';
return $container.find('#'+id)[0]; return $container.find('#'+id)[0];
} };
var updateUserList = function (myUserName, listElement, userList, userData) { var updateUserList = function (myUserName, listElement, userList, userData) {
var meIdx = userList.indexOf(myUserName); var meIdx = userList.indexOf(myUserName);
@ -241,7 +241,7 @@ define([
userData = newUserData; userData = newUserData;
} }
updateUserList(myUserName, userListElement, users, userData); updateUserList(myUserName, userListElement, users, userData);
} };
var ks = function () { var ks = function () {
if (connected) { kickSpinner(spinner, false); } if (connected) { kickSpinner(spinner, false); }

Loading…
Cancel
Save