Closed Bug 275887 Opened 20 years ago Closed 19 years ago

click+drag on timeslots leads to wrong end of event

Categories

(Calendar :: Sunbird Only, defect)

Sunbird 0.2
x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mozillabugs, Assigned: mostafah)

Details

affects day view/week view:
selecting just a single timeslot (e.g. 8:00) gives you a 8:00-9:00 event
(according to the dialog box), selecting both 8:00 and 9:00 timeslots, it's
still an 8:00-9:00 event, instead of 8:00-10:00.
This is just a mess.

Dragging a slot in the Day or Week view should not select multiple slots and
then immediately create an event in this way.

The normal way to select a range is by using Shift.  Then drag and drop the
range on the tasks list or events list to create a task or event.

Also, the toolbar buttons and context menu should respect the selected range.

Also, if the drop will not do anything (for example, on the Calendars list) the
pointer should change to indicate this.

Also, the selection should not be invisible if the day is the current day in the
Week view.

Also, the selection should not allow gaps (unselected slots in the middle).

FWIW, I also see the wrong end time, as was originally reported.
i think i found it:

dragDrop.js, line 283:
change: gEndDate.setHours( aEvent.target.getAttribute( "hour" ) );
to: gEndDate.setHours( parseInt(aEvent.target.getAttribute( "hour" )) + 1 );

this should do the trick (hey, first bugreport and - hopefully - a solution
within 24 hours ;) )
QA Contact: gurganbl → sunbird
Status: UNCONFIRMED → NEW
Ever confirmed: true
fixed by the switch to the new views (bug 297934)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Version: Sunbird 0.2RC1 → Sunbird 0.2
You need to log in before you can comment on or make changes to this bug.