diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 10:26:43 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 10:26:43 +0300 |
commit | 0f8aca9d87db9022fe942a3d3fbb11433e152676 (patch) | |
tree | 5b36724719611ebb87b3d9290a51475f32b48e64 /apps/comments/src | |
parent | fc31cb8bf2d6cf7ee7af46af38e1b06002f7fb26 (diff) |
Bump compiled files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments/src')
-rw-r--r-- | apps/comments/src/activitytabviewplugin.js | 6 | ||||
-rw-r--r-- | apps/comments/src/commentmodel.js | 4 | ||||
-rw-r--r-- | apps/comments/src/commentsmodifymenu.js | 8 | ||||
-rw-r--r-- | apps/comments/src/commentsummarymodel.js | 4 | ||||
-rw-r--r-- | apps/comments/src/filesplugin.js | 14 |
5 files changed, 18 insertions, 18 deletions
diff --git a/apps/comments/src/activitytabviewplugin.js b/apps/comments/src/activitytabviewplugin.js index f7df6147660..c01cdb8146b 100644 --- a/apps/comments/src/activitytabviewplugin.js +++ b/apps/comments/src/activitytabviewplugin.js @@ -18,7 +18,7 @@ * @param {jQuery} $el jQuery handle for this activity * @param {string} view The view that displayes this activity */ - prepareModelForDisplay: function(model, $el, view) { + prepareModelForDisplay(model, $el, view) { if (model.get('app') !== 'comments' || model.get('type') !== 'comments') { return } @@ -37,7 +37,7 @@ /* * Copy of CommentsTabView._onClickComment() */ - _onClickCollapsedComment: function(ev) { + _onClickCollapsedComment(ev) { let $row = $(ev.target) if (!$row.is('.comment')) { $row = $row.closest('.comment') @@ -48,7 +48,7 @@ /* * Copy of CommentsTabView._isLong() */ - _isLong: function(message) { + _isLong(message) { return message.length > 250 || (message.match(/\n/g) || []).length > 1 }, } diff --git a/apps/comments/src/commentmodel.js b/apps/comments/src/commentmodel.js index cd3e1900c9f..aff8e7f6708 100644 --- a/apps/comments/src/commentmodel.js +++ b/apps/comments/src/commentmodel.js @@ -52,7 +52,7 @@ 'mentions': OC.Files.Client.PROPERTY_MENTIONS, }, - parse: function(data) { + parse(data) { return { id: data.id, message: data.message, @@ -67,7 +67,7 @@ } }, - _parseMentions: function(mentions) { + _parseMentions(mentions) { if (_.isUndefined(mentions)) { return {} } diff --git a/apps/comments/src/commentsmodifymenu.js b/apps/comments/src/commentsmodifymenu.js index 340e71aa5fb..98ca7dc427e 100644 --- a/apps/comments/src/commentsmodifymenu.js +++ b/apps/comments/src/commentsmodifymenu.js @@ -31,7 +31,7 @@ iconClass: 'icon-delete', }, ], - initialize: function() { + initialize() { }, events: { @@ -43,7 +43,7 @@ * * @param {Object} event event object */ - _onClickAction: function(event) { + _onClickAction(event) { let $target = $(event.currentTarget) if (!$target.hasClass('menuitem')) { $target = $target.closest('.menuitem') @@ -57,7 +57,7 @@ /** * Renders the menu with the currently set items */ - render: function() { + render() { this.$el.html(OCA.Comments.Templates['commentsmodifymenu']({ items: this._scopes, })) @@ -67,7 +67,7 @@ * Displays the menu * @param {Event} context the click event */ - show: function(context) { + show(context) { this._context = context for (const i in this._scopes) { diff --git a/apps/comments/src/commentsummarymodel.js b/apps/comments/src/commentsummarymodel.js index eb25b2f5ea9..86d5c71b354 100644 --- a/apps/comments/src/commentsummarymodel.js +++ b/apps/comments/src/commentsummarymodel.js @@ -52,14 +52,14 @@ * @param {string} [options.objectType] object type * @param {string} [options.objectId] object id */ - initialize: function(attrs, options) { + initialize(attrs, options) { options = options || {} if (options.objectType) { this._objectType = options.objectType } }, - url: function() { + url() { return OC.linkToRemote('dav') + '/comments/' + encodeURIComponent(this._objectType) + '/' + encodeURIComponent(this.id) + '/' diff --git a/apps/comments/src/filesplugin.js b/apps/comments/src/filesplugin.js index 2487b86b8be..a0331b5390c 100644 --- a/apps/comments/src/filesplugin.js +++ b/apps/comments/src/filesplugin.js @@ -31,15 +31,15 @@ 'files.public', ], - _formatCommentCount: function(count) { + _formatCommentCount(count) { return OCA.Comments.Templates['filesplugin']({ - count: count, + count, countMessage: n('comments', '%n unread comment', '%n unread comments', count), iconUrl: OC.imagePath('core', 'actions/comment'), }) }, - attach: function(fileList) { + attach(fileList) { const self = this if (this.ignoreLists.indexOf(fileList.id) >= 0) { return @@ -77,11 +77,11 @@ // register "comment" action for reading comments fileList.fileActions.registerAction({ name: 'Comment', - displayName: function(context) { + displayName(context) { if (context && context.$file) { const unread = parseInt(context.$file.data('comments-unread'), 10) if (unread >= 0) { - return n('comments', '1 new comment', '{unread} new comments', unread, { unread: unread }) + return n('comments', '1 new comment', '{unread} new comments', unread, { unread }) } } return t('comments', 'Comment') @@ -91,7 +91,7 @@ iconClass: 'icon-comment', permissions: OC.PERMISSION_READ, type: OCA.Files.FileActions.TYPE_INLINE, - render: function(actionSpec, isDefault, context) { + render(actionSpec, isDefault, context) { const $file = context.$file const unreadComments = $file.data('comments-unread') if (unreadComments) { @@ -101,7 +101,7 @@ } return '' }, - actionHandler: function(fileName, context) { + actionHandler(fileName, context) { context.$file.find('.action-comment').tooltip('hide') // open sidebar in comments section context.fileList.showDetailsView(fileName, 'comments') |