[DE] Compare: use loading from fileChoiceUrl

This commit is contained in:
Julia Radzhabova 2019-10-15 10:58:18 +03:00
parent 5c05508dcf
commit 3facb70eba

View file

@ -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;