[DE] Fix rev. c0862be9b9
(Change downloading as TXT/ RTF)
This commit is contained in:
parent
e34f886d79
commit
85b5d88c12
|
@ -302,7 +302,10 @@ define([
|
||||||
buttons: ['ok', 'cancel'],
|
buttons: ['ok', 'cancel'],
|
||||||
callback: _.bind(function(btn){
|
callback: _.bind(function(btn){
|
||||||
if (btn == 'ok') {
|
if (btn == 'ok') {
|
||||||
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.TXT, this.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format));
|
if (format == Asc.c_oAscFileType.TXT)
|
||||||
|
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.TXT, this.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format));
|
||||||
|
else
|
||||||
|
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||||
menu.hide();
|
menu.hide();
|
||||||
}
|
}
|
||||||
}, this)
|
}, this)
|
||||||
|
@ -348,7 +351,10 @@ define([
|
||||||
callback: _.bind(function(btn){
|
callback: _.bind(function(btn){
|
||||||
if (btn == 'ok') {
|
if (btn == 'ok') {
|
||||||
this.isFromFileDownloadAs = ext;
|
this.isFromFileDownloadAs = ext;
|
||||||
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.TXT, this.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format, true));
|
if (format == Asc.c_oAscFileType.TXT)
|
||||||
|
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.TXT, this.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format, true));
|
||||||
|
else
|
||||||
|
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format, true));
|
||||||
menu.hide();
|
menu.hide();
|
||||||
}
|
}
|
||||||
}, this)
|
}, this)
|
||||||
|
|
|
@ -568,7 +568,10 @@ define([
|
||||||
(format === Asc.c_oAscFileType.TXT) ? me.warnDownloadAs : me.warnDownloadAsRTF,
|
(format === Asc.c_oAscFileType.TXT) ? me.warnDownloadAs : me.warnDownloadAsRTF,
|
||||||
me.notcriticalErrorTitle,
|
me.notcriticalErrorTitle,
|
||||||
function () {
|
function () {
|
||||||
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.TXT, me.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format));
|
if (format == Asc.c_oAscFileType.TXT)
|
||||||
|
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.TXT, me.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format));
|
||||||
|
else
|
||||||
|
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue