summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
diff options
context:
space:
mode:
authorAbijeet <abijeetpatro@gmail.com>2018-03-27 01:34:00 +0530
committerAbijeet <abijeetpatro@gmail.com>2018-03-27 01:34:00 +0530
commit16bf9326cb1ccb54351c04193755ade0f49588b4 (patch)
treef286e259821e6c12443cf0c0a3f7b5c95ccc0184 /apps/comments/js
parent18096f55d07a47c47e02239d82da5bebae617cec (diff)
downloadnextcloud-server-16bf9326cb1ccb54351c04193755ade0f49588b4.tar.gz
nextcloud-server-16bf9326cb1ccb54351c04193755ade0f49588b4.zip
Fixing failing test cases due to change in functionality.
Also fixes scrutinizer warnings. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Diffstat (limited to 'apps/comments/js')
-rw-r--r--apps/comments/js/commentsmodifymenu.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/comments/js/commentsmodifymenu.js b/apps/comments/js/commentsmodifymenu.js
index 1c5f572d8cc..4b17cbbfbf0 100644
--- a/apps/comments/js/commentsmodifymenu.js
+++ b/apps/comments/js/commentsmodifymenu.js
@@ -7,12 +7,14 @@
* See the COPYING-README file.
*
*/
+
+/* global Handlebars */
(function() {
var TEMPLATE_MENU =
'<ul>' +
'{{#each items}}' +
'<li>' +
- '<a href="#" class="menuitem action action-{{name}} permanent" data-action="{{name}}">' +
+ '<a href="#" class="menuitem action {{name}} permanent" data-action="{{name}}">' +
'{{#if iconClass}}' +
'<span class="icon {{iconClass}}"></span>' +
'{{else}}' +
@@ -64,7 +66,7 @@
}
OC.hideMenus();
-
+
this.trigger('select:menu-item-clicked', event, $target.data('action'));
},
@@ -119,4 +121,4 @@
OCA.Comments = OCA.Comments || {};
OCA.Comments.CommentsModifyMenu = CommentsModifyMenu;
-})(OC, OCA);; \ No newline at end of file
+})(OC, OCA); \ No newline at end of file