Merge branch 'hotfix/v4.3.5'
This commit is contained in:
commit
93d1e58820
|
@ -115,7 +115,8 @@
|
||||||
statusBar: true,
|
statusBar: true,
|
||||||
autosave: true,
|
autosave: true,
|
||||||
forcesave: false,
|
forcesave: false,
|
||||||
commentAuthorOnly: false
|
commentAuthorOnly: false,
|
||||||
|
showReviewChanges: false
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
autoStartGuid: 'asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}',
|
autoStartGuid: 'asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}',
|
||||||
|
@ -328,6 +329,7 @@
|
||||||
if (!_config.document.permissions)
|
if (!_config.document.permissions)
|
||||||
_config.document.permissions = {};
|
_config.document.permissions = {};
|
||||||
_config.document.permissions.edit = false;
|
_config.document.permissions.edit = false;
|
||||||
|
_config.editorConfig.canUseHistory = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_config.document.title || _config.document.title=='')
|
if (!_config.document.title || _config.document.title=='')
|
||||||
|
|
|
@ -382,12 +382,11 @@ define([
|
||||||
}
|
}
|
||||||
$(this.el).find('ul').scrollTop(0);
|
$(this.el).find('ul').scrollTop(0);
|
||||||
this.trigger('show:after', this, e);
|
this.trigger('show:after', this, e);
|
||||||
|
this.flushVisibleFontsTiles();
|
||||||
|
this.updateVisibleFontsTiles(null, 0);
|
||||||
} else {
|
} else {
|
||||||
Common.UI.ComboBox.prototype.onAfterShowMenu.apply(this, arguments);
|
Common.UI.ComboBox.prototype.onAfterShowMenu.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.flushVisibleFontsTiles();
|
|
||||||
this.updateVisibleFontsTiles(null, 0);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onAfterHideMenu: function(e) {
|
onAfterHideMenu: function(e) {
|
||||||
|
@ -398,6 +397,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
addItemToRecent: function(record) {
|
addItemToRecent: function(record) {
|
||||||
|
if (this.recent<1) return;
|
||||||
|
|
||||||
if (record.get('type') != FONT_TYPE_RECENT &&
|
if (record.get('type') != FONT_TYPE_RECENT &&
|
||||||
!this.store.findWhere({name: record.get('name'),type:FONT_TYPE_RECENT})) {
|
!this.store.findWhere({name: record.get('name'),type:FONT_TYPE_RECENT})) {
|
||||||
var fonts = this.store.where({type:FONT_TYPE_RECENT});
|
var fonts = this.store.where({type:FONT_TYPE_RECENT});
|
||||||
|
|
|
@ -184,6 +184,8 @@ define([
|
||||||
value = Common.localStorage.getItem("de-new-changes");
|
value = Common.localStorage.getItem("de-new-changes");
|
||||||
this.showNewChangesTip = !(value && parseInt(value) == 1) && !this.statusbar.mode.isLightVersion;
|
this.showNewChangesTip = !(value && parseInt(value) == 1) && !this.statusbar.mode.isLightVersion;
|
||||||
|
|
||||||
|
var showChangesPanel = (typeof (this.statusbar.mode.customization) == 'object' && !!this.statusbar.mode.customization.showReviewChanges);
|
||||||
|
|
||||||
if (this.statusbar.mode.isReviewOnly) {
|
if (this.statusbar.mode.isReviewOnly) {
|
||||||
var iconEl = $('.btn-icon', this.statusbar.btnReview.cmpEl);
|
var iconEl = $('.btn-icon', this.statusbar.btnReview.cmpEl);
|
||||||
(this.api.asc_HaveRevisionsChanges()) ? iconEl.removeClass(this.statusbar.btnReviewCls).addClass('btn-ic-changes') : iconEl.removeClass('btn-ic-changes').addClass(this.statusbar.btnReviewCls);
|
(this.api.asc_HaveRevisionsChanges()) ? iconEl.removeClass(this.statusbar.btnReviewCls).addClass('btn-ic-changes') : iconEl.removeClass('btn-ic-changes').addClass(this.statusbar.btnReviewCls);
|
||||||
|
@ -199,9 +201,10 @@ define([
|
||||||
} else {
|
} else {
|
||||||
value = Common.localStorage.getItem("de-track-changes");
|
value = Common.localStorage.getItem("de-track-changes");
|
||||||
var doc_review = this.api.asc_IsTrackRevisions();
|
var doc_review = this.api.asc_IsTrackRevisions();
|
||||||
if (!doc_review)
|
if (!doc_review) {
|
||||||
this.changeReviewStatus(false);
|
this.changeReviewStatus(false);
|
||||||
else {
|
this.statusbar.mnuChangesPanel.setChecked(showChangesPanel);
|
||||||
|
} else {
|
||||||
var iconEl = $('.btn-icon', this.statusbar.btnReview.cmpEl);
|
var iconEl = $('.btn-icon', this.statusbar.btnReview.cmpEl);
|
||||||
(this.api.asc_HaveRevisionsChanges()) ? iconEl.removeClass(this.statusbar.btnReviewCls).addClass('btn-ic-changes') : iconEl.removeClass('btn-ic-changes').addClass(this.statusbar.btnReviewCls);
|
(this.api.asc_HaveRevisionsChanges()) ? iconEl.removeClass(this.statusbar.btnReviewCls).addClass('btn-ic-changes') : iconEl.removeClass('btn-ic-changes').addClass(this.statusbar.btnReviewCls);
|
||||||
if (value!==null && parseInt(value) == 1) {
|
if (value!==null && parseInt(value) == 1) {
|
||||||
|
@ -216,6 +219,7 @@ define([
|
||||||
this.statusbar.btnReview.updateHint(this.statusbar.tipReview);
|
this.statusbar.btnReview.updateHint(this.statusbar.tipReview);
|
||||||
} else {
|
} else {
|
||||||
this.changeReviewStatus(false);
|
this.changeReviewStatus(false);
|
||||||
|
this.statusbar.mnuChangesPanel.setChecked(showChangesPanel);
|
||||||
if (this.api.asc_HaveRevisionsChanges() && this.showNewChangesTip && !statusbarIsHidden){
|
if (this.api.asc_HaveRevisionsChanges() && this.showNewChangesTip && !statusbarIsHidden){
|
||||||
this.statusbar.btnReview.updateHint('');
|
this.statusbar.btnReview.updateHint('');
|
||||||
if (this.newChangesTooltip===undefined)
|
if (this.newChangesTooltip===undefined)
|
||||||
|
@ -298,11 +302,11 @@ define([
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
this.api.asc_SetTrackRevisions(state);
|
this.api.asc_SetTrackRevisions(state);
|
||||||
}
|
}
|
||||||
this.showHideReviewChangesPanel(state && !this.statusbar.mode.isLightVersion);
|
this.showHideReviewChangesPanel(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
showHideReviewChangesPanel: function(state) {
|
showHideReviewChangesPanel: function(state) {
|
||||||
this.reviewChangesPanel[state ? 'show' : 'hide']();
|
this.reviewChangesPanel[(state && !this.statusbar.mode.isLightVersion) ? 'show' : 'hide']();
|
||||||
},
|
},
|
||||||
|
|
||||||
synchronizeChanges: function() {
|
synchronizeChanges: function() {
|
||||||
|
|
Loading…
Reference in a new issue