diff --git a/apps/documenteditor/main/app/controller/FormsTab.js b/apps/documenteditor/main/app/controller/FormsTab.js index 8e7d98bcf..63287cf5b 100644 --- a/apps/documenteditor/main/app/controller/FormsTab.js +++ b/apps/documenteditor/main/app/controller/FormsTab.js @@ -153,7 +153,7 @@ define([ var content_locked = lock_type==Asc.c_oAscSdtLockType.SdtContentLocked || lock_type==Asc.c_oAscSdtLockType.ContentLocked; var arr = [ this.view.btnTextField, this.view.btnComboBox, this.view.btnDropDown, this.view.btnCheckBox, this.view.btnRadioBox, this.view.btnImageField, this.view.btnEmailField, this.view.btnPhoneField, this.view.btnComplexField, - this.view.btnCreditCard, this.view.btnZipCode]; + this.view.btnCreditCard, this.view.btnZipCode, this.view.btnDateTime]; Common.Utils.lockControls(Common.enumLock.paragraphLock, paragraph_locked, {array: arr}); Common.Utils.lockControls(Common.enumLock.headerLock, header_locked, {array: arr}); Common.Utils.lockControls(Common.enumLock.controlPlain, control_plain, {array: arr}); @@ -191,6 +191,8 @@ define([ this.api.asc_AddContentControlCheckBox(oPr, oFormPr); } else if (type == 'combobox' || type == 'dropdown') this.api.asc_AddContentControlList(type == 'combobox', oPr, oFormPr); + else if (type == 'datetime') + this.api.asc_AddContentControlDatePicker(); // !!!! change for datetime form else if (type == 'text') { var props = new AscCommon.CContentControlPr(); oPr = new AscCommon.CSdtTextFormPr(); diff --git a/apps/documenteditor/main/app/controller/RightMenu.js b/apps/documenteditor/main/app/controller/RightMenu.js index 1261c0156..97ef644ac 100644 --- a/apps/documenteditor/main/app/controller/RightMenu.js +++ b/apps/documenteditor/main/app/controller/RightMenu.js @@ -220,7 +220,8 @@ define([ if (control_props && control_props.get_FormPr() && this.rightmenu.formSettings) { var spectype = control_props.get_SpecificType(); if (spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.Picture || spectype==Asc.c_oAscContentControlSpecificType.Complex || - spectype==Asc.c_oAscContentControlSpecificType.ComboBox || spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None) { + spectype==Asc.c_oAscContentControlSpecificType.ComboBox || spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None || + spectype==Asc.c_oAscContentControlSpecificType.DateTime) { settingsType = Common.Utils.documentSettingsType.Form; this._settings[settingsType].props = control_props; this._settings[settingsType].locked = control_lock || isProtected; diff --git a/apps/documenteditor/main/app/view/FormsTab.js b/apps/documenteditor/main/app/view/FormsTab.js index 0b9690434..a3ffb0f9b 100644 --- a/apps/documenteditor/main/app/view/FormsTab.js +++ b/apps/documenteditor/main/app/view/FormsTab.js @@ -61,6 +61,7 @@ define([ '