Update hint for Add Comment button.
This commit is contained in:
parent
f06a59f4ef
commit
bd5ae6e902
|
@ -1413,6 +1413,7 @@ define([
|
||||||
textEnterCommentHint : 'Enter your comment here',
|
textEnterCommentHint : 'Enter your comment here',
|
||||||
textEdit : 'Edit',
|
textEdit : 'Edit',
|
||||||
textAdd : "Add",
|
textAdd : "Add",
|
||||||
textOpenAgain : "Open Again"
|
textOpenAgain : "Open Again",
|
||||||
|
textHintAddComment : 'Add Comment'
|
||||||
}, Common.Views.Comments || {}))
|
}, Common.Views.Comments || {}))
|
||||||
});
|
});
|
|
@ -2843,7 +2843,7 @@ define([
|
||||||
if ( this.btnsComment.length ) {
|
if ( this.btnsComment.length ) {
|
||||||
var _comments = DE.getController('Common.Controllers.Comments').getView();
|
var _comments = DE.getController('Common.Controllers.Comments').getView();
|
||||||
this.btnsComment.forEach(function (btn) {
|
this.btnsComment.forEach(function (btn) {
|
||||||
btn.updateHint( _comments.textAddComment );
|
btn.updateHint( _comments.textHintAddComment );
|
||||||
btn.on('click', function (btn, e) {
|
btn.on('click', function (btn, e) {
|
||||||
Common.NotificationCenter.trigger('app:comment:add', 'toolbar');
|
Common.NotificationCenter.trigger('app:comment:add', 'toolbar');
|
||||||
});
|
});
|
||||||
|
|
|
@ -121,6 +121,7 @@
|
||||||
"Common.Views.Comments.textComments": "Comments",
|
"Common.Views.Comments.textComments": "Comments",
|
||||||
"Common.Views.Comments.textEdit": "OK",
|
"Common.Views.Comments.textEdit": "OK",
|
||||||
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
|
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
|
||||||
|
"Common.Views.Comments.textHintAddComment": "Add Comment",
|
||||||
"Common.Views.Comments.textOpenAgain": "Open Again",
|
"Common.Views.Comments.textOpenAgain": "Open Again",
|
||||||
"Common.Views.Comments.textReply": "Reply",
|
"Common.Views.Comments.textReply": "Reply",
|
||||||
"Common.Views.Comments.textResolve": "Resolve",
|
"Common.Views.Comments.textResolve": "Resolve",
|
||||||
|
|
|
@ -2073,7 +2073,7 @@ define([
|
||||||
var _comments = PE.getController('Common.Controllers.Comments').getView();
|
var _comments = PE.getController('Common.Controllers.Comments').getView();
|
||||||
Array.prototype.push.apply(me.toolbar.lockControls, this.btnsComment);
|
Array.prototype.push.apply(me.toolbar.lockControls, this.btnsComment);
|
||||||
this.btnsComment.forEach(function (btn) {
|
this.btnsComment.forEach(function (btn) {
|
||||||
btn.updateHint( _comments.textAddComment );
|
btn.updateHint( _comments.textHintAddComment );
|
||||||
btn.on('click', function (btn, e) {
|
btn.on('click', function (btn, e) {
|
||||||
Common.NotificationCenter.trigger('app:comment:add', 'toolbar');
|
Common.NotificationCenter.trigger('app:comment:add', 'toolbar');
|
||||||
});
|
});
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
"Common.Views.Comments.textComments": "Comments",
|
"Common.Views.Comments.textComments": "Comments",
|
||||||
"Common.Views.Comments.textEdit": "OK",
|
"Common.Views.Comments.textEdit": "OK",
|
||||||
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
|
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
|
||||||
|
"Common.Views.Comments.textHintAddComment": "Add Comment",
|
||||||
"Common.Views.Comments.textOpenAgain": "Open Again",
|
"Common.Views.Comments.textOpenAgain": "Open Again",
|
||||||
"Common.Views.Comments.textReply": "Reply",
|
"Common.Views.Comments.textReply": "Reply",
|
||||||
"Common.Views.Comments.textResolve": "Resolve",
|
"Common.Views.Comments.textResolve": "Resolve",
|
||||||
|
|
|
@ -2922,7 +2922,7 @@ define([
|
||||||
var _comments = SSE.getController('Common.Controllers.Comments').getView();
|
var _comments = SSE.getController('Common.Controllers.Comments').getView();
|
||||||
Array.prototype.push.apply(me.toolbar.lockControls, this.btnsComment);
|
Array.prototype.push.apply(me.toolbar.lockControls, this.btnsComment);
|
||||||
this.btnsComment.forEach(function (btn) {
|
this.btnsComment.forEach(function (btn) {
|
||||||
btn.updateHint( _comments.textAddComment );
|
btn.updateHint( _comments.textHintAddComment );
|
||||||
btn.on('click', function (btn, e) {
|
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);
|
Common.NotificationCenter.trigger('app:comment:add', 'toolbar', me.api.asc_getCellInfo().asc_getFlags().asc_getSelectionType() != Asc.c_oAscSelectionType.RangeCells);
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
"Common.Views.Comments.textComments": "Comments",
|
"Common.Views.Comments.textComments": "Comments",
|
||||||
"Common.Views.Comments.textEdit": "OK",
|
"Common.Views.Comments.textEdit": "OK",
|
||||||
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
|
"Common.Views.Comments.textEnterCommentHint": "Enter your comment here",
|
||||||
|
"Common.Views.Comments.textHintAddComment": "Add Comment",
|
||||||
"Common.Views.Comments.textOpenAgain": "Open Again",
|
"Common.Views.Comments.textOpenAgain": "Open Again",
|
||||||
"Common.Views.Comments.textReply": "Reply",
|
"Common.Views.Comments.textReply": "Reply",
|
||||||
"Common.Views.Comments.textResolve": "Resolve",
|
"Common.Views.Comments.textResolve": "Resolve",
|
||||||
|
|
Loading…
Reference in a new issue