aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorAbijeet <abijeetpatro@gmail.com>2018-03-04 11:36:33 +0530
committerAbijeet <abijeetpatro@gmail.com>2018-03-27 00:49:34 +0530
commit01c5a31a4ab04802ce4001e4e618d9812f83d69b (patch)
tree01fbac39567e20a5689123d863a0827cfaa08aa1 /apps/comments
parent6d2716dceb7791ef23f56510f9ceb29144b62dc1 (diff)
downloadnextcloud-server-01c5a31a4ab04802ce4001e4e618d9812f83d69b.tar.gz
nextcloud-server-01c5a31a4ab04802ce4001e4e618d9812f83d69b.zip
Adds a tooltip for the submit / save button in comments.
Towards #7281 Also hiding the menu before triggering click action. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/js/commentsmodifymenu.js4
-rw-r--r--apps/comments/js/commentstabview.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/js/commentsmodifymenu.js b/apps/comments/js/commentsmodifymenu.js
index bd777ba5fa6..1c5f572d8cc 100644
--- a/apps/comments/js/commentsmodifymenu.js
+++ b/apps/comments/js/commentsmodifymenu.js
@@ -63,9 +63,9 @@
$target = $target.closest('.menuitem');
}
- this.trigger('select:menu-item-clicked', event, $target.data('action'));
-
OC.hideMenus();
+
+ this.trigger('select:menu-item-clicked', event, $target.data('action'));
},
/**
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index ad5f67842db..9477cb0c301 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -33,7 +33,7 @@
' </div>' +
' <form class="newCommentForm">' +
' <div contentEditable="true" class="message" data-placeholder="{{newMessagePlaceholder}}">{{message}}</div>' +
- ' <input class="submit icon-confirm" type="submit" value="" />' +
+ ' <input class="submit icon-confirm has-tooltip" type="submit" value="" title="{{submitText}}"/>' +
' <div class="submitLoading icon-loading-small hidden"></div>'+
' </form>' +
'</{{tag}}>';