Fix bug 449573 - Deleting item/items from local ics file fails with MODIFICATION_FAILED, items missing (both patches). r=philipp,p=gekachecka
git-svn-id: svn://10.0.0.236/trunk@253692 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -366,10 +366,14 @@ function unifinderKeyPress(aEvent) {
|
||||
case 13:
|
||||
// Enter, edit the event
|
||||
editSelectedEvents();
|
||||
aEvent.stopPropagation();
|
||||
aEvent.preventDefault();
|
||||
break;
|
||||
case kKE.DOM_VK_BACK_SPACE:
|
||||
case kKE.DOM_VK_DELETE:
|
||||
deleteSelectedEvents();
|
||||
aEvent.stopPropagation();
|
||||
aEvent.preventDefault();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -625,7 +625,8 @@ function getLastCalendarView() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes items currently selected in the view.
|
||||
* Deletes items currently selected in the view
|
||||
* and clears selection.
|
||||
*/
|
||||
function deleteSelectedEvents() {
|
||||
var selectedItems = currentView().getSelectedItems({});
|
||||
@@ -633,6 +634,8 @@ function deleteSelectedEvents() {
|
||||
selectedItems,
|
||||
false,
|
||||
false);
|
||||
// clear selection
|
||||
currentView().setSelectedItems(0, [], true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user