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:
mozilla%kewis.ch
2008-08-19 15:20:04 +00:00
parent 83d7f3a3f7
commit 4fedd3c4fa
2 changed files with 8 additions and 1 deletions

View File

@@ -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;
}
}

View File

@@ -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);
}
/**