Allow selection over multiple days in multi-day view (#287)
This commit is contained in:
parent
cb4a908d48
commit
7094e68074
2 changed files with 3 additions and 3 deletions
|
@ -1792,7 +1792,7 @@ function rcube_calendar_ui(settings)
|
||||||
table: rcmail.gettext('agenda', 'calendar')
|
table: rcmail.gettext('agenda', 'calendar')
|
||||||
},
|
},
|
||||||
selectable: true,
|
selectable: true,
|
||||||
selectHelper: true,
|
selectHelper: false,
|
||||||
loading: function(isLoading) {
|
loading: function(isLoading) {
|
||||||
me.is_loading = isLoading;
|
me.is_loading = isLoading;
|
||||||
this._rc_loading = rcmail.set_busy(isLoading, 'loading', this._rc_loading);
|
this._rc_loading = rcmail.set_busy(isLoading, 'loading', this._rc_loading);
|
||||||
|
|
|
@ -3574,10 +3574,10 @@ function AgendaView(element, calendar, viewName) {
|
||||||
function slotSelectionMousedown(ev) {
|
function slotSelectionMousedown(ev) {
|
||||||
if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
|
if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
|
||||||
unselect(ev);
|
unselect(ev);
|
||||||
var dates;
|
var dates, helperOption = opt('selectHelper');
|
||||||
hoverListener.start(function(cell, origCell) {
|
hoverListener.start(function(cell, origCell) {
|
||||||
clearSelection();
|
clearSelection();
|
||||||
if (cell && cell.col == origCell.col && !cellIsAllDay(cell)) {
|
if (cell && (cell.col == origCell.col || !helperOption) && !cellIsAllDay(cell)) {
|
||||||
var d1 = cellDate(origCell);
|
var d1 = cellDate(origCell);
|
||||||
var d2 = cellDate(cell);
|
var d2 = cellDate(cell);
|
||||||
dates = [
|
dates = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue