mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Calendar: print gridlines to 15-minute intervals
This commit is contained in:
@@ -45,7 +45,10 @@
|
||||
><div var:class="clickableHourCellClass"
|
||||
var:day="currentTableDay.shortDateString"
|
||||
var:hour="currentAppointmentHour">
|
||||
</div></var:foreach></div>
|
||||
<span class="minutes15"><!-- space --></span>
|
||||
<span class="minutes30"><!-- space --></span>
|
||||
<span class="minutes45"><!-- space --></span>
|
||||
</div></var:foreach></div>
|
||||
<div class="events"><!-- space --></div>
|
||||
</div>
|
||||
</var:foreach>
|
||||
|
||||
@@ -579,6 +579,14 @@ DIV.daysViewFor7Days#daysView DIV.selectedDay.weekEndDay DIV.clickableHourCell,
|
||||
DIV.daysViewFor7Days#daysView DIV.selectedDay DIV.clickableHourCell.outOfDay
|
||||
{ background-color: #f5dd92; }
|
||||
|
||||
.minutes15, .minutes30, .minutes45
|
||||
{ display: block;
|
||||
height: 9px;
|
||||
border-bottom: 1px dotted #eee; }
|
||||
|
||||
.minutes30
|
||||
{ border-bottom: 1px dotted #ccc; }
|
||||
|
||||
DIV.weekOf4
|
||||
{ height: 25%; }
|
||||
|
||||
|
||||
@@ -1007,6 +1007,10 @@ SOGoEventDragController.prototype = {
|
||||
onDragStart: function SEDC_onDragStart(event) {
|
||||
var target = getTarget(event);
|
||||
if (eventIsLeftClick(event) && (target.nodeType == 1)) {
|
||||
if (target.hasClassName("minutes15") ||
|
||||
target.hasClassName("minutes30") ||
|
||||
target.hasClassName("minutes45"))
|
||||
target = target.parentNode;
|
||||
if ((!this.eventCells
|
||||
&& (target.hasClassName("clickableHourCell")
|
||||
|| target.hasClassName("day"))
|
||||
|
||||
Reference in New Issue
Block a user