Applied patch for Issue 970: fix bad division slash in code

This commit is contained in:
Wojciech Zylinski 2012-01-08 04:09:48 +00:00
parent 6ae1be4ca1
commit 41dbc6d238

View file

@ -396,8 +396,7 @@ function AgendaEventRenderer() {
setOuterHeight( setOuterHeight(
eventElement, eventElement,
slotHeight * Math.round( slotHeight * Math.round(
(event.end ? ((event.end - event.start) / MINUTE_MS) : opt('defaultEventMinutes')) (event.end ? ((event.end - event.start) / MINUTE_MS) : opt('defaultEventMinutes')) / opt('slotMinutes')
/ opt('slotMinutes')
) )
); );
eventElement.draggable('option', 'grid', [colWidth, 1]); eventElement.draggable('option', 'grid', [colWidth, 1]);