summaryrefslogtreecommitdiffstats
path: root/apps/comments/src/activitytabviewplugin.js
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-11-13 12:05:10 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-19 11:55:33 +0100
commitec01e0a790448fff38364f629a4de4edb5d465bf (patch)
tree8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /apps/comments/src/activitytabviewplugin.js
parent5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff)
downloadnextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.tar.gz
nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.zip
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/comments/src/activitytabviewplugin.js')
-rw-r--r--apps/comments/src/activitytabviewplugin.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/src/activitytabviewplugin.js b/apps/comments/src/activitytabviewplugin.js
index 2afee4c2be5..f7df6147660 100644
--- a/apps/comments/src/activitytabviewplugin.js
+++ b/apps/comments/src/activitytabviewplugin.js
@@ -27,7 +27,7 @@
$el.addClass('comment')
if (model.get('message') && this._isLong(model.get('message'))) {
$el.addClass('collapsed')
- var $overlay = $('<div>').addClass('message-overlay')
+ const $overlay = $('<div>').addClass('message-overlay')
$el.find('.activitymessage').after($overlay)
$el.on('click', this._onClickCollapsedComment)
}
@@ -38,7 +38,7 @@
* Copy of CommentsTabView._onClickComment()
*/
_onClickCollapsedComment: function(ev) {
- var $row = $(ev.target)
+ let $row = $(ev.target)
if (!$row.is('.comment')) {
$row = $row.closest('.comment')
}
@@ -50,7 +50,7 @@
*/
_isLong: function(message) {
return message.length > 250 || (message.match(/\n/g) || []).length > 1
- }
+ },
}
})()