diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index 9d992642fa..38a8d91727 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -995,6 +995,10 @@ define([ this._layoutParams.columns++; }, + setMultiselectMode: function (multiselect) { + this.pressedCtrl = !!multiselect; + }, + onResize: function() { this._layoutParams = undefined; }, diff --git a/apps/spreadsheeteditor/main/app/view/PivotGroupDialog.js b/apps/spreadsheeteditor/main/app/view/PivotGroupDialog.js index 04abfeec5a..b7947bb111 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotGroupDialog.js +++ b/apps/spreadsheeteditor/main/app/view/PivotGroupDialog.js @@ -254,12 +254,14 @@ define([ if (dateTypes) { var me = this, isDays; + this.listDate.setMultiselectMode(dateTypes.length>1); _.each(dateTypes, function(item) { var rec = me.listDate.store.findWhere({type: item}); rec && me.listDate.selectRecord(rec); if (item == Asc.c_oAscGroupBy.Days) isDays = true; }); + this.listDate.setMultiselectMode(false); this.spnDays.setValue(rangePr.asc_getGroupInterval()); this.spnDays.setDisabled(!isDays || dateTypes.length>1); this.btnOk.setDisabled(dateTypes.length<1);