diff --git a/apps/presentationeditor/mobile/app/controller/Settings.js b/apps/presentationeditor/mobile/app/controller/Settings.js index 171bb0d26..629ccaf7a 100644 --- a/apps/presentationeditor/mobile/app/controller/Settings.js +++ b/apps/presentationeditor/mobile/app/controller/Settings.js @@ -358,9 +358,9 @@ define([ _onPrint: function(e) { var me = this; - _.defer(function () { + _.delay(function () { me.api.asc_Print(); - }); + }, 300); me.hideModal(); }, @@ -393,9 +393,9 @@ define([ format = $(e.currentTarget).data('format'); if (format) { - _.defer(function () { + _.delay(function () { me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format)); - }); + }, 300); } me.hideModal(); diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index 4012bd658..fe69d96f5 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -675,9 +675,9 @@ define([ _onPrint: function(e) { var me = this; - _.defer(function () { + _.delay(function () { me.api.asc_Print(); - }); + }, 300); me.hideModal(); }, @@ -699,9 +699,9 @@ define([ ); }, 50); } else { - setTimeout(function () { + _.delay(function () { me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format)); - }, 50); + }, 300); } } },