Update title
This commit is contained in:
parent
cebb400c34
commit
09b6079ed4
|
@ -124,7 +124,8 @@ define([
|
||||||
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="lr-separator" id="id-box-doc-name">' +
|
'<div class="lr-separator" id="id-box-doc-name">' +
|
||||||
'<label id="title-doc-name" />' +
|
// '<label id="title-doc-name" />' +
|
||||||
|
'<input id="title-doc-name" /></input>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<label id="title-user-name"></label>' +
|
'<label id="title-user-name"></label>' +
|
||||||
'</section>';
|
'</section>';
|
||||||
|
@ -214,8 +215,10 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAppShowed(config) {
|
function onAppShowed(config) {
|
||||||
|
//config.isCrypted =true; //delete fore merge!
|
||||||
if ( this.labelDocName ) {
|
if ( this.labelDocName ) {
|
||||||
if ( config.isCrypted ) {
|
if ( config.isCrypted ) {
|
||||||
|
this.labelDocName.attr({'style':'text-align: left;'});
|
||||||
this.labelDocName.before(
|
this.labelDocName.before(
|
||||||
'<div class="inner-box-icon crypted">' +
|
'<div class="inner-box-icon crypted">' +
|
||||||
'<svg class="icon"><use xlink:href="#svg-icon-crypted"></use></svg>' +
|
'<svg class="icon"><use xlink:href="#svg-icon-crypted"></use></svg>' +
|
||||||
|
@ -504,7 +507,7 @@ define([
|
||||||
if ( !me.labelDocName ) {
|
if ( !me.labelDocName ) {
|
||||||
me.labelDocName = $html.find('#rib-doc-name');
|
me.labelDocName = $html.find('#rib-doc-name');
|
||||||
if ( me.documentCaption ) {
|
if ( me.documentCaption ) {
|
||||||
me.labelDocName.text(me.documentCaption);
|
me.labelDocName.val(me.documentCaption);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$html.find('#rib-doc-name').hide();
|
$html.find('#rib-doc-name').hide();
|
||||||
|
@ -562,7 +565,7 @@ define([
|
||||||
|
|
||||||
!!me.labelDocName && me.labelDocName.hide().off(); // hide document title if it was created in right box
|
!!me.labelDocName && me.labelDocName.hide().off(); // hide document title if it was created in right box
|
||||||
me.labelDocName = $html.find('#title-doc-name');
|
me.labelDocName = $html.find('#title-doc-name');
|
||||||
me.labelDocName.text( me.documentCaption );
|
me.labelDocName.val( me.documentCaption );
|
||||||
|
|
||||||
me.labelUserName = $('> #title-user-name', $html);
|
me.labelUserName = $('> #title-user-name', $html);
|
||||||
me.setUserName(me.options.userName);
|
me.setUserName(me.options.userName);
|
||||||
|
@ -630,7 +633,7 @@ define([
|
||||||
this.documentCaption = value;
|
this.documentCaption = value;
|
||||||
this.isModified && (value += '*');
|
this.isModified && (value += '*');
|
||||||
if ( this.labelDocName ) {
|
if ( this.labelDocName ) {
|
||||||
this.labelDocName.text( value );
|
this.labelDocName.val( value );
|
||||||
// this.labelDocName.attr('size', value.length);
|
// this.labelDocName.attr('size', value.length);
|
||||||
|
|
||||||
this.setCanRename(true);
|
this.setCanRename(true);
|
||||||
|
@ -649,7 +652,7 @@ define([
|
||||||
var _name = this.documentCaption;
|
var _name = this.documentCaption;
|
||||||
changed && (_name += '*');
|
changed && (_name += '*');
|
||||||
|
|
||||||
this.labelDocName.text(_name);
|
this.labelDocName.val(_name);
|
||||||
},
|
},
|
||||||
|
|
||||||
setCanBack: function (value, text) {
|
setCanBack: function (value, text) {
|
||||||
|
@ -679,7 +682,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setCanRename: function (rename) {
|
setCanRename: function (rename) {
|
||||||
rename = false;
|
rename = true; //for merge rename = false; ??
|
||||||
|
|
||||||
var me = this;
|
var me = this;
|
||||||
me.options.canRename = rename;
|
me.options.canRename = rename;
|
||||||
|
|
Loading…
Reference in a new issue