зеркало из https://github.com/mozilla/pjs.git
Fixing problem with not importing tasks.
This commit is contained in:
Родитель
15f1fe7b58
Коммит
5b5e4ef57f
|
@ -137,7 +137,7 @@ function cutToClipboard( /* calendarEventArray */)
|
|||
function copyToClipboard( calendarEventArray )
|
||||
{
|
||||
if( !calendarEventArray)
|
||||
calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;
|
||||
var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;
|
||||
|
||||
if(calendarEventArray.length == 0)
|
||||
alert("No events selected");
|
||||
|
@ -182,7 +182,6 @@ function copyToClipboard( calendarEventArray )
|
|||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -219,9 +218,9 @@ function pasteFromClipboard()
|
|||
trans.getAnyTransferData(flavour, data, length);
|
||||
data = data.value.QueryInterface(Components.interfaces.nsISupportsWString).data;
|
||||
//DEBUG alert("clipboard type: " + flavour.value);
|
||||
var calendarEventArray;
|
||||
switch (flavour.value) {
|
||||
case "text/calendar":
|
||||
var calendarEventArray;
|
||||
calendarEventArray = parseIcalData( data );
|
||||
|
||||
//change the date of all the events to now
|
||||
|
@ -238,7 +237,7 @@ function pasteFromClipboard()
|
|||
addEventsToCalendar( calendarEventArray );
|
||||
break;
|
||||
case "text/unicode":
|
||||
if ( data.indexOf("BEGIN:VCALENDAR") == -1 )
|
||||
if ( data.indexOf("BEGIN:VEVENT") == -1 )
|
||||
{
|
||||
// no iCalendar data, paste clipboard text into description of new event
|
||||
calendarEvent = createEvent();
|
||||
|
@ -248,6 +247,7 @@ function pasteFromClipboard()
|
|||
}
|
||||
else
|
||||
{
|
||||
var calendarEventArray;
|
||||
calendarEventArray = parseIcalData( data );
|
||||
//change the date of all the events to now
|
||||
var startDate = gCalendarWindow.currentView.getNewEventDate();
|
||||
|
|
|
@ -137,7 +137,7 @@ function cutToClipboard( /* calendarEventArray */)
|
|||
function copyToClipboard( calendarEventArray )
|
||||
{
|
||||
if( !calendarEventArray)
|
||||
calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;
|
||||
var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;
|
||||
|
||||
if(calendarEventArray.length == 0)
|
||||
alert("No events selected");
|
||||
|
@ -182,7 +182,6 @@ function copyToClipboard( calendarEventArray )
|
|||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -219,9 +218,9 @@ function pasteFromClipboard()
|
|||
trans.getAnyTransferData(flavour, data, length);
|
||||
data = data.value.QueryInterface(Components.interfaces.nsISupportsWString).data;
|
||||
//DEBUG alert("clipboard type: " + flavour.value);
|
||||
var calendarEventArray;
|
||||
switch (flavour.value) {
|
||||
case "text/calendar":
|
||||
var calendarEventArray;
|
||||
calendarEventArray = parseIcalData( data );
|
||||
|
||||
//change the date of all the events to now
|
||||
|
@ -238,7 +237,7 @@ function pasteFromClipboard()
|
|||
addEventsToCalendar( calendarEventArray );
|
||||
break;
|
||||
case "text/unicode":
|
||||
if ( data.indexOf("BEGIN:VCALENDAR") == -1 )
|
||||
if ( data.indexOf("BEGIN:VEVENT") == -1 )
|
||||
{
|
||||
// no iCalendar data, paste clipboard text into description of new event
|
||||
calendarEvent = createEvent();
|
||||
|
@ -248,6 +247,7 @@ function pasteFromClipboard()
|
|||
}
|
||||
else
|
||||
{
|
||||
var calendarEventArray;
|
||||
calendarEventArray = parseIcalData( data );
|
||||
//change the date of all the events to now
|
||||
var startDate = gCalendarWindow.currentView.getNewEventDate();
|
||||
|
|
Загрузка…
Ссылка в новой задаче