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>
This commit is contained in:
Abijeet 2018-03-04 11:36:33 +05:30
parent 6d2716dceb
commit 01c5a31a4a
2 changed files with 3 additions and 3 deletions

View File

@ -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'));
},
/**

View File

@ -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}}>';