Merge branch 'feature/long_title' of https://github.com/ONLYOFFICE/web-apps into feature/long_title
This commit is contained in:
commit
2e04f94434
|
@ -657,9 +657,9 @@ define([
|
|||
this.fileExtention = this.documentCaption.substring(idx);
|
||||
this.isModified && (value += '*');
|
||||
if ( this.labelDocName ) {
|
||||
this.labelDocName.val( value );
|
||||
this.setDocTile( value );
|
||||
// this.labelDocName.attr('size', value.length);
|
||||
this.setCanRename(this.options.canRename);
|
||||
//this.setCanRename(this.options.canRename);
|
||||
|
||||
//this.setCanRename(true);
|
||||
}
|
||||
|
@ -676,7 +676,7 @@ define([
|
|||
var _name = this.documentCaption;
|
||||
changed && (_name += '*');
|
||||
|
||||
this.labelDocName.val(_name);
|
||||
this.setDocTile(_name);
|
||||
},
|
||||
|
||||
setCanBack: function (value, text) {
|
||||
|
@ -749,7 +749,7 @@ define([
|
|||
},
|
||||
|
||||
cutDocName: function(name) {
|
||||
if(name.length <= this.fileExtention.length) return;
|
||||
if(name.length <= this.fileExtention.length) return name;
|
||||
var idx =name.length - this.fileExtention.length;
|
||||
|
||||
return (name.substring(idx) == this.fileExtention) ? name.substring(0, idx) : name ;
|
||||
|
|
Loading…
Reference in a new issue