lint compliance

pull/1/head
yflory 5 years ago
parent 5d18dcc8ba
commit 45d37acc84

@ -1176,7 +1176,6 @@ define([
UIElements.createInviteTeamModal = function (config) { UIElements.createInviteTeamModal = function (config) {
var common = config.common; var common = config.common;
var hasFriends = Object.keys(config.friends || {}).length !== 0; var hasFriends = Object.keys(config.friends || {}).length !== 0;
var friendsList = hasFriends ? createShareWithFriends(config) : undefined;
if (!hasFriends) { if (!hasFriends) {
return void UI.alert('No friend to invite'); // XXX return void UI.alert('No friend to invite'); // XXX
@ -1220,7 +1219,7 @@ define([
var sel = $sel.toArray(); var sel = $sel.toArray();
if (!sel.length) { return; } if (!sel.length) { return; }
var friends = sel.forEach(function (el) { sel.forEach(function (el) {
var curve = $(el).attr('data-curve'); var curve = $(el).attr('data-curve');
module.execCommand('INVITE_TO_TEAM', { module.execCommand('INVITE_TO_TEAM', {
teamId: config.teamId, teamId: config.teamId,
@ -3702,7 +3701,6 @@ define([
UIElements.displayInviteTeamModal = function (common, data) { UIElements.displayInviteTeamModal = function (common, data) {
var priv = common.getMetadataMgr().getPrivateData(); var priv = common.getMetadataMgr().getPrivateData();
var user = common.getMetadataMgr().getUserData(); var user = common.getMetadataMgr().getUserData();
var sframeChan = common.getSframeChannel();
var msg = data.content.msg; var msg = data.content.msg;
var name = Util.fixHTML(msg.content.user.displayName) || Messages.anonymous; var name = Util.fixHTML(msg.content.user.displayName) || Messages.anonymous;

@ -139,9 +139,6 @@ define([
// if not archived, add handlers // if not archived, add handlers
if (!content.archived) { if (!content.archived) {
content.handler = function () { content.handler = function () {
var metadataMgr = common.getMetadataMgr();
var priv = metadataMgr.getPrivateData();
var link = h('a', { var link = h('a', {
href: '#' href: '#'
}, Messages.requestEdit_viewPad); }, Messages.requestEdit_viewPad);
@ -281,7 +278,7 @@ define([
// Display the notification // Display the notification
var name = Util.fixHTML(msg.content.user.displayName) || Messages.anonymous; var name = Util.fixHTML(msg.content.user.displayName) || Messages.anonymous;
var teamName = Util.fixHTML(Util.find(msg, ['content', 'team', 'metadata', 'name']) || ''); var teamName = Util.fixHTML(Util.find(msg, ['content', 'team', 'metadata', 'name']) || '');
var key = 'owner_request_' + (msg.content.answer ? 'accepted' : 'declined'); //var key = 'owner_request_' + (msg.content.answer ? 'accepted' : 'declined');
content.getFormatText = function () { content.getFormatText = function () {
//return Messages._getKey(key, [name, title]); // XXX //return Messages._getKey(key, [name, title]); // XXX
return name +' has ' + (msg.content.answer ? 'accepted' : 'declined') + ' your offer to join the team <b>' + teamName + '</b>'; return name +' has ' + (msg.content.answer ? 'accepted' : 'declined') + ' your offer to join the team <b>' + teamName + '</b>';

@ -323,7 +323,7 @@ define([
if (invitedTo[content.team.channel]) { return void cb(true); } if (invitedTo[content.team.channel]) { return void cb(true); }
var myTeams = Util.find(ctx, ['store', 'proxy', 'teams']) var myTeams = Util.find(ctx, ['store', 'proxy', 'teams']);
var alreadyMember = Object.keys(myTeams).some(function (k) { var alreadyMember = Object.keys(myTeams).some(function (k) {
var team = myTeams[k]; var team = myTeams[k];
return team.channel === content.team.channel; return team.channel === content.team.channel;
@ -349,7 +349,7 @@ define([
return void cb(true); return void cb(true);
} }
var myTeams = Util.find(ctx, ['store', 'proxy', 'teams']) var myTeams = Util.find(ctx, ['store', 'proxy', 'teams']);
var teamId; var teamId;
var team; var team;
Object.keys(myTeams).some(function (k) { Object.keys(myTeams).some(function (k) {

Loading…
Cancel
Save