From 76e73c4af9d46a4697c5b52e73bda26f7883dbe5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 9 Jul 2019 10:48:22 +0300 Subject: [PATCH] [PE] Set default format for date-time --- .../main/app/controller/Main.js | 2 + .../main/app/view/DateTimeDialog.js | 64 +++++++++++++++---- apps/presentationeditor/main/locale/en.json | 2 + 3 files changed, 57 insertions(+), 11 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index cc8c8df46..763d5cc0a 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -634,6 +634,8 @@ define([ me.hidePreloader(); me.onLongActionEnd(Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument); + Common.Utils.InternalSettings.set("pe-settings-datetime-default", Common.localStorage.getItem("pe-settings-datetime-default")); + value = Common.localStorage.getItem("pe-settings-zoom"); Common.Utils.InternalSettings.set("pe-settings-zoom", value); var zf = (value!==null) ? parseInt(value) : (this.appOptions.customization && this.appOptions.customization.zoom ? parseInt(this.appOptions.customization.zoom) : -1); diff --git a/apps/presentationeditor/main/app/view/DateTimeDialog.js b/apps/presentationeditor/main/app/view/DateTimeDialog.js index d130baa41..367b9a45c 100644 --- a/apps/presentationeditor/main/app/view/DateTimeDialog.js +++ b/apps/presentationeditor/main/app/view/DateTimeDialog.js @@ -47,7 +47,7 @@ define([ PE.Views.DateTimeDialog = Common.UI.Window.extend(_.extend({ options: { - width: 300, + width: 350, style: 'min-width: 230px;', cls: 'modal-dlg' }, @@ -61,7 +61,7 @@ define([ }, options || {}); this.template = [ - '
', + '
', '
', '', '
', @@ -69,9 +69,10 @@ define([ '
', '', '
', - '
', + '
', '
', - '
', + '
', + '', '
', '
', '