[DE] Lock document info settings
This commit is contained in:
parent
aa9c0a2f5c
commit
d7abed8f38
|
@ -830,7 +830,7 @@ define([
|
|||
|
||||
this.tblAuthor.on('click', function(e) {
|
||||
var btn = $(e.target);
|
||||
if (btn.hasClass('close')) {
|
||||
if (btn.hasClass('close') && !btn.hasClass('disabled')) {
|
||||
var el = btn.closest('tr'),
|
||||
idx = me.tblAuthor.find('tr').index(el);
|
||||
el.remove();
|
||||
|
@ -1008,6 +1008,7 @@ define([
|
|||
this.api.asc_registerCallback('asc_onDocInfo', _.bind(this._onDocInfo, this));
|
||||
this.api.asc_registerCallback('asc_onGetDocInfoEnd', _.bind(this._onGetDocInfoEnd, this));
|
||||
// this.api.asc_registerCallback('asc_onDocumentName', _.bind(this.onDocumentName, this));
|
||||
this.api.asc_registerCallback('asc_onLockCore', _.bind(this.onLockCore, this));
|
||||
this.updateInfo(this.doc);
|
||||
return this;
|
||||
},
|
||||
|
@ -1059,6 +1060,14 @@ define([
|
|||
// this.lblTitle.text((name) ? name : '-');
|
||||
},
|
||||
|
||||
onLockCore: function(lock) {
|
||||
this.inputTitle.setDisabled(lock);
|
||||
this.inputSubject.setDisabled(lock);
|
||||
this.inputComment.setDisabled(lock);
|
||||
this.inputAuthor.setDisabled(lock);
|
||||
this.tblAuthor.find('.close').toggleClass('disabled', lock);
|
||||
},
|
||||
|
||||
txtPlacement: 'Location',
|
||||
txtOwner: 'Owner',
|
||||
txtUploaded: 'Uploaded',
|
||||
|
|
|
@ -364,6 +364,11 @@
|
|||
&:hover {
|
||||
background-position: @but-close-offset-x @but-close-offset-y - 16px;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
background-position: @but-close-offset-x @but-close-offset-y - 32px;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue