[DE] Fix Bug 43460 (#261)
This commit is contained in:
parent
4196914962
commit
3308662a1d
|
@ -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);
|
||||
|
@ -163,6 +164,8 @@ define([
|
|||
},
|
||||
|
||||
onSetHistoryData: function(opts) {
|
||||
if (!this.mode.canUseHistory) return;
|
||||
|
||||
if (opts.data.error) {
|
||||
var config = {
|
||||
title: this.notcriticalErrorTitle,
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue