From 46720dc37b8c28a6665eb186e9c96e582146ca64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 8 Oct 2018 15:46:13 +0200 Subject: [PATCH] Fix jslint errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/controller/ActivityController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/controller/ActivityController.js b/js/controller/ActivityController.js index acc26cf9c..a7d3a7de8 100644 --- a/js/controller/ActivityController.js +++ b/js/controller/ActivityController.js @@ -20,7 +20,7 @@ * */ -/* global OC OCA */ +/* global OC OCA OCP _ */ import CommentCollection from '../legacy/commentcollection'; import CommentModel from '../legacy/commentmodel'; @@ -59,7 +59,7 @@ class ActivityController { return; } $target.atwho({ - at: "@", + at: '@', callbacks: { remoteFilter: function(query, callback) { let uids = self.boardservice.getUsers(); @@ -97,7 +97,7 @@ class ActivityController { '' + escapeHTML(item.displayname) + '' + ''; }, - searchKey: "label" + searchKey: 'displayname' }); $target.on('inserted.atwho', function (je, $el) { $(je.target).find( @@ -153,7 +153,7 @@ class ActivityController { const displayName = ActivityController._composeHTMLMention(mentions[i].mentionId, mentions[i].mentionDisplayName); // replace every mention either at the start of the input or after a whitespace // followed by a non-word character. - message = message.replace(new RegExp("(^|\\s)(" + mention + ")\\b", 'g'), + message = message.replace(new RegExp('(^|\\s)(' + mention + ')\\b', 'g'), function(match, p1) { // to get number of whitespaces (0 vs 1) right return p1+displayName;