Skip to content

Commit

Permalink
[DE] Fix Bug 43460 (ONLYOFFICE#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova authored and agolybev committed Nov 6, 2019
1 parent 4196914 commit 3308662
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/common/main/lib/controller/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ define([
},

setMode: function(mode) {
this.mode = mode;
if (!mode.canHistoryClose) {
this.panelHistory.$el.find('#history-header').hide();
this.panelHistory.$el.find('#history-list').css('padding-top', 0);
Expand Down Expand Up @@ -163,6 +164,8 @@ define([
},

onSetHistoryData: function(opts) {
if (!this.mode.canUseHistory) return;

if (opts.data.error) {
var config = {
title: this.notcriticalErrorTitle,
Expand Down
2 changes: 2 additions & 0 deletions apps/documenteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ define([
},

onRefreshHistory: function(opts) {
if (!this.appOptions.canUseHistory) return;

this.loadMask && this.loadMask.hide();
if (opts.data.error || !opts.data.history) {
var historyStore = this.getApplication().getCollection('Common.Collections.HistoryVersions');
Expand Down

0 comments on commit 3308662

Please sign in to comment.