From 9e27f111cbc8ba221dbd8c6f81621ffa5ebb20f3 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 6 Sep 2018 18:45:53 +0200 Subject: [PATCH] lint compliance --- customize.dist/src/less2/include/messenger.less | 10 +++++----- www/common/toolbar3.js | 2 +- www/contacts/messenger-ui.js | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/customize.dist/src/less2/include/messenger.less b/customize.dist/src/less2/include/messenger.less index cdac34752..a086f528b 100644 --- a/customize.dist/src/less2/include/messenger.less +++ b/customize.dist/src/less2/include/messenger.less @@ -125,11 +125,11 @@ } &:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: @color; - opacity: 1; + opacity: 1; } &::-moz-placeholder { /* Mozilla Firefox 19+ */ color: @color; - opacity: 1; + opacity: 1; } &:-ms-input-placeholder { /* Internet Explorer 10-11 */ color: @color; @@ -167,7 +167,7 @@ .cp-avatar, .cp-app-contacts-right-col { - flex:1 1 auto; + flex: 1 1 auto; } .cp-app-contacts-remove-history { .hover; @@ -196,7 +196,7 @@ & > div { padding: 0 10px; } - .cp-app-contacts-content { + .cp-app-contacts-content { overflow: hidden; word-wrap: break-word; &> * { @@ -234,7 +234,7 @@ resize: none; overflow-y: auto; .placeholder(#bbb); - &[disabled=true] { + &[disabled="true"] { .placeholder(#999); } } diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index 840afd017..b5e16a27a 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -413,7 +413,7 @@ Messenger, MessengerUI, Messages) { return $container; }; - var initChat = function (toolbar, config) { + var initChat = function (toolbar) { var $container = $('
', {id: 'cp-app-contacts-container'}) .prependTo(toolbar.chatContent); var sframeChan = Common.getSframeChannel(); diff --git a/www/contacts/messenger-ui.js b/www/contacts/messenger-ui.js index 14d203ffa..00d5a49c4 100644 --- a/www/contacts/messenger-ui.js +++ b/www/contacts/messenger-ui.js @@ -41,7 +41,6 @@ define([ $container.addClass('cp-app-contacts-initializing'); - var spinner = ''; var messaging = h('div#cp-app-contacts-messaging', [ h('span.fa.fa-spinner.fa-pulse.fa-4x.fa-fw.cp-app-contacts-spinner'), h('div.cp-app-contacts-info', [ @@ -210,7 +209,6 @@ define([ $(removeHistory).click(function () { // XXX console.error("TODO: only display clear button if owned"); - return; UI.confirm(Messages.contacts_confirmRemoveHistory, function (yes) { if (!yes) { return; } @@ -607,8 +605,9 @@ define([ $messages.find(userQuery(curvePublic)).remove(); if (channel && channel.curvePublic === curvePublic) { showInfo(); + } + if (!removedByMe) { // TODO UI.alert if this is triggered by the other guy - // (we need more data on the 'unfriend' event to determine its origin) } });