diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index ea350e1f0..9103fdaf9 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -70,7 +70,7 @@ define([ ''); var templateRightBox = '
' + - '
' + + '
' + '<%= textSaveEnd %>' + '
' + '
' + @@ -387,7 +387,7 @@ define([ }); if ( this.documentCaption ) { - this.labelDocName.text( Common.Utils.String.htmlEncode(this.documentCaption) ); + this.labelDocName.val( this.documentCaption ); } if ( !_.isUndefined(this.options.canRename) ) { @@ -485,9 +485,8 @@ define([ this.documentCaption = value; this.isModified && (value += '*'); if ( this.labelDocName ) { - var encoded = Common.Utils.String.htmlEncode(value); - this.labelDocName.val( encoded ); - this.labelDocName.attr('size', encoded.length); + this.labelDocName.val( value ); + this.labelDocName.attr('size', value.length); this.setCanRename(true); } @@ -502,10 +501,10 @@ define([ setDocumentChanged: function (changed) { this.isModified = changed; - var _name = Common.Utils.String.htmlEncode(this.documentCaption); + var _name = this.documentCaption; changed && (_name += '*'); - this.labelDocName.html(_name); + this.labelDocName.val(_name); }, setCanBack: function (value) { @@ -538,6 +537,7 @@ define([ tip.setContent(); } } + label.attr('data-can-copy', rename); } },