Update hint for Add Comment button.

This commit is contained in:
Julia Radzhabova 2017-08-02 16:47:40 +03:00
parent f06a59f4ef
commit bd5ae6e902
7 changed files with 8 additions and 4 deletions

View file

@ -1413,6 +1413,7 @@ define([
textEnterCommentHint : 'Enter your comment here',
textEdit : 'Edit',
textAdd : "Add",
textOpenAgain : "Open Again"
textOpenAgain : "Open Again",
textHintAddComment : 'Add Comment'
}, Common.Views.Comments || {}))
});

View file

@ -2843,7 +2843,7 @@ define([
if ( this.btnsComment.length ) {
var _comments = DE.getController('Common.Controllers.Comments').getView();
this.btnsComment.forEach(function (btn) {
btn.updateHint( _comments.textAddComment );
btn.updateHint( _comments.textHintAddComment );
btn.on('click', function (btn, e) {
Common.NotificationCenter.trigger('app:comment:add', 'toolbar');
});

View file

@ -121,6 +121,7 @@
"Common.Views.Comments.textComments": "Comments",
"Common.Views.Comments.textEdit": "OK",
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
"Common.Views.Comments.textHintAddComment": "Add Comment",
"Common.Views.Comments.textOpenAgain": "Open Again",
"Common.Views.Comments.textReply": "Reply",
"Common.Views.Comments.textResolve": "Resolve",

View file

@ -2073,7 +2073,7 @@ define([
var _comments = PE.getController('Common.Controllers.Comments').getView();
Array.prototype.push.apply(me.toolbar.lockControls, this.btnsComment);
this.btnsComment.forEach(function (btn) {
btn.updateHint( _comments.textAddComment );
btn.updateHint( _comments.textHintAddComment );
btn.on('click', function (btn, e) {
Common.NotificationCenter.trigger('app:comment:add', 'toolbar');
});

View file

@ -63,6 +63,7 @@
"Common.Views.Comments.textComments": "Comments",
"Common.Views.Comments.textEdit": "OK",
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
"Common.Views.Comments.textHintAddComment": "Add Comment",
"Common.Views.Comments.textOpenAgain": "Open Again",
"Common.Views.Comments.textReply": "Reply",
"Common.Views.Comments.textResolve": "Resolve",

View file

@ -2922,7 +2922,7 @@ define([
var _comments = SSE.getController('Common.Controllers.Comments').getView();
Array.prototype.push.apply(me.toolbar.lockControls, this.btnsComment);
this.btnsComment.forEach(function (btn) {
btn.updateHint( _comments.textAddComment );
btn.updateHint( _comments.textHintAddComment );
btn.on('click', function (btn, e) {
Common.NotificationCenter.trigger('app:comment:add', 'toolbar', me.api.asc_getCellInfo().asc_getFlags().asc_getSelectionType() != Asc.c_oAscSelectionType.RangeCells);
});

View file

@ -60,6 +60,7 @@
"Common.Views.Comments.textComments": "Comments",
"Common.Views.Comments.textEdit": "OK",
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
"Common.Views.Comments.textHintAddComment": "Add Comment",
"Common.Views.Comments.textOpenAgain": "Open Again",
"Common.Views.Comments.textReply": "Reply",
"Common.Views.Comments.textResolve": "Resolve",