From 3facb70ebad3aa260189ff025b4d68571466d6e8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 15 Oct 2019 10:58:18 +0300 Subject: [PATCH] [DE] Compare: use loading from fileChoiceUrl --- apps/common/main/lib/controller/ReviewChanges.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/common/main/lib/controller/ReviewChanges.js b/apps/common/main/lib/controller/ReviewChanges.js index ab0f5760c..b06d4be0a 100644 --- a/apps/common/main/lib/controller/ReviewChanges.js +++ b/apps/common/main/lib/controller/ReviewChanges.js @@ -595,14 +595,15 @@ define([ } })).show(); } else if (item === 'storage') { + var me = this; // if (this.appConfig.canRequestCompareFile) { // Common.Gateway.requestCompareFile(); // } else { - // (new Common.Views.SelectFileDlg({ - // fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "DocumentsOnly") - // })).on('comparefile', function(obj, file){ - // me.compareFile(file, me._state.compareSettings); - // }).show(); + (new Common.Views.SelectFileDlg({ + fileChoiceUrl: this.appConfig.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "DocumentsOnly") + })).on('selectfile', function(obj, file){ + me.compareFile(file, me._state.compareSettings); + }).show(); // } } else if (item === 'settings') { var me = this;