Calendar: print gridlines to 15-minute intervals

pull/12/head
Francis Lachapelle 2013-07-11 13:50:44 -04:00
parent b8e2255a07
commit 33fd60efb3
3 changed files with 16 additions and 1 deletions

View File

@ -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>

View File

@ -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%; }

View File

@ -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"))