Bug 306877 Disable most drag and drop support for 0.3a1 release r=mvl

This commit is contained in:
jminta%gmail.com 2005-09-03 16:07:59 +00:00
parent 5ebc575b21
commit d2c8bc618d
6 changed files with 12 additions and 24 deletions

View File

@ -497,12 +497,17 @@
<!-- V I S I B L E C O N T E N T -->
<vbox id="calendar-top-box"
flex="1"
context="context-menu">
<!--Bug 306877: Removed drag and drop support for 0.3a1. Reimplement this!
<vbox id="calendar-top-box"
flex="1"
context="context-menu"
ondraggesture="nsDragAndDrop.startDrag(event,calendarManagerDNDObserver);"
ondragover="nsDragAndDrop.dragOver(event,calendarManagerDNDObserver)"
ondragdrop="nsDragAndDrop.drop(event,calendarManagerDNDObserver)">
ondragdrop="nsDragAndDrop.drop(event,calendarManagerDNDObserver)">-->
<!-- Calendar Controls-->

View File

@ -479,9 +479,6 @@ DayView.prototype.createEventBoxInternal = function(event)
eventBox.setAttribute( "ondblclick", "dayEventItemDoubleClick( this, event )" );
eventBox.setAttribute( "onmouseover", "onMouseOverGridOccurrence(event)" );
eventBox.setAttribute( "tooltip", "gridOccurrenceTooltip" );
eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,calendarViewDNDObserver);" );
eventBox.setAttribute( "ondragover", "nsDragAndDrop.dragOver(event,calendarViewDNDObserver)" );
eventBox.setAttribute( "ondragdrop", "nsDragAndDrop.drop(event,calendarViewDNDObserver)" );
// mark the box as selected, if the event is
if (this.calendarWindow.EventSelection.isSelectedEvent(calEvent))

View File

@ -194,10 +194,6 @@ function MonthView( calendarWindow )
dayBoxItem.setAttribute( "onclick", "gCalendarWindow.monthView.clickDay( event )" );
dayBoxItem.setAttribute( "oncontextmenu", "gCalendarWindow.monthView.contextClickDay( event )" );
//set the drop
dayBoxItem.setAttribute( "ondragdrop", "nsDragAndDrop.drop(event,monthViewEventDragAndDropObserver)" );
dayBoxItem.setAttribute( "ondragover", "nsDragAndDrop.dragOver(event,monthViewEventDragAndDropObserver)" );
//set the double click of day boxes
dayBoxItem.setAttribute( "ondblclick", "gCalendarWindow.monthView.doubleClickDay( event )" );
@ -285,7 +281,6 @@ MonthView.prototype.createEventDotInternal = function(itemOccurrence, startDate,
eventDot.setAttribute("ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
eventDot.setAttribute("onmouseover", "onMouseOverGridOccurrence(event)" );
eventDot.setAttribute("tooltip", "gridOccurrenceTooltip" );
eventDot.setAttribute("ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
eventDot.occurrence = itemOccurrence; // for mouseover preview
eventDot.event = calEvent;
eventDotBox.appendChild( eventDot );
@ -350,7 +345,6 @@ MonthView.prototype.createEventBoxInternal = function(itemOccurrence, startDate,
eventBox.setAttribute("ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
eventBox.setAttribute("onmouseover", "onMouseOverGridOccurrence(event)" );
eventBox.setAttribute("tooltip", "gridOccurrenceTooltip" );
eventBox.setAttribute("ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
// add a property to the event box that holds the calendarEvent that the
// box represents
@ -381,7 +375,6 @@ MonthView.prototype.createEventBoxInternal = function(itemOccurrence, startDate,
eventBox.setAttribute( "eventselected", "true" );
eventBoxText.setAttribute("flex", "1");
eventBoxText.setAttribute("ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);");
// add the text to the event box and the event box to the day box
@ -451,7 +444,6 @@ MonthView.prototype.createEventBoxInternal = function(itemOccurrence, startDate,
eventBox.setAttribute( "ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" );
eventBox.setAttribute( "tooltip", "gridOccurrenceTooltip" );
eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
// add a property to the event box that holds the calendarEvent that the
// box represents
@ -485,7 +477,6 @@ MonthView.prototype.createEventBoxInternal = function(itemOccurrence, startDate,
//you need this flex in order for text to crop
eventBoxText.setAttribute( "flex", "1" );
eventBoxText.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
// add the text to the event box and the event box to the day box

View File

@ -198,10 +198,6 @@ function MultiweekView( calendarWindow )
dayBoxItem.setAttribute( "onclick", "gCalendarWindow.multiweekView.clickDay( event )" );
dayBoxItem.setAttribute( "oncontextmenu", "gCalendarWindow.multiweekView.contextClickDay( event )" );
//set the drop
dayBoxItem.setAttribute( "ondragdrop", "nsDragAndDrop.drop(event,monthViewEventDragAndDropObserver)" );
dayBoxItem.setAttribute( "ondragover", "nsDragAndDrop.dragOver(event,monthViewEventDragAndDropObserver)" );
//set the double click of day boxes
dayBoxItem.setAttribute( "ondblclick", "gCalendarWindow.multiweekView.doubleClickDay( event )" );
@ -300,7 +296,6 @@ MultiweekView.prototype.createEventDotInternal = function(itemOccurrence, startD
eventDot.setAttribute("ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
eventDot.setAttribute("onmouseover", "onMouseOverGridOccurrence(event)" );
eventDot.setAttribute("tooltip", "gridOccurrenceTooltip" );
eventDot.setAttribute("ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
eventDot.occurrence = itemOccurrence; // for mouseover preview
eventDot.event = calEvent;
eventDotBox.appendChild( eventDot );
@ -367,7 +362,6 @@ MultiweekView.prototype.createEventBoxInternal = function multiweekView_createEv
eventBox.setAttribute( "ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
eventBox.setAttribute( "onmouseover", "onMouseOverGridOccurrence(event)" );
eventBox.setAttribute( "tooltip", "gridOccurrenceTooltip" );
eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
eventBox.occurrence = itemOccurrence;
eventBox.event = calEvent;
@ -428,7 +422,6 @@ MultiweekView.prototype.getToDoBox = function multiweekView_getToDoBox( calendar
eventBox.setAttribute( "ondblclick", "multiweekToDoBoxDoubleClickEvent( this, event )" );
eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarToDo, event )" );
eventBox.setAttribute( "tooltip", "gridOccurrenceTooltip" );
//eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );
// add a property to the event box that holds the calendarEvent that the
// box represents

View File

@ -447,9 +447,6 @@ WeekView.prototype.createEventBoxInternal = function (event)
eventBox.setAttribute("dayindex", index + 1);
eventBox.setAttribute("onclick", "weekEventItemClick(this, event)" );
eventBox.setAttribute("ondblclick", "weekEventItemDoubleClick(this, event)");
eventBox.setAttribute("ondraggesture", "nsDragAndDrop.startDrag(event,calendarViewDNDObserver);");
eventBox.setAttribute("ondragover", "nsDragAndDrop.dragOver(event,calendarViewDNDObserver)");
eventBox.setAttribute("ondragdrop", "nsDragAndDrop.drop(event,calendarViewDNDObserver)");
eventBox.setAttribute("id", "week-view-event-box-" + calEvent.id);
eventBox.setAttribute("name", "week-view-event-box-" + calEvent.id);
eventBox.setAttribute("onmouseover", "onMouseOverGridOccurrence(event)" );

View File

@ -425,12 +425,17 @@
<!-- V I S I B L E C O N T E N T -->
<vbox id="calendar-top-box"
flex="1"
context="context-menu">
<!--Bug 306877: Removed drag and drop support for 0.3a1. Reimplement this!
<vbox id="calendar-top-box"
flex="1"
context="context-menu"
ondraggesture="nsDragAndDrop.startDrag(event,calendarManagerDNDObserver);"
ondragover="nsDragAndDrop.dragOver(event,calendarManagerDNDObserver)"
ondragdrop="nsDragAndDrop.drop(event,calendarManagerDNDObserver)">
ondragdrop="nsDragAndDrop.drop(event,calendarManagerDNDObserver)">-->
<!-- Calendar Controls-->