Bug 362876 Offer a chance to save changes to an item if the app is trying to restart r=lilmatt,mvl

This commit is contained in:
jminta%gmail.com 2006-12-21 04:31:06 +00:00
parent 81b3f34473
commit c922968d37
2 changed files with 14 additions and 0 deletions

View File

@ -1154,3 +1154,13 @@ var gCategoriesPane = {
catList.selectedIndex = index;
}
};
// Make sure that an AUS update triggered restart doesn't automatically nuke
// what the user is working on
window.tryToClose = function calItemDialogAttemptClose() {
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
return promptService.confirm(window,
calGetString("calendar", "confirmCloseTitle"),
calGetString("calendar", "confirmCloseText"));
}

View File

@ -259,6 +259,10 @@ yesterday=Yesterday
go=Go
# Confirming whether or not to close the new/edit item dialog
confirmCloseTitle=Discard changes?
confirmCloseText=Discard changes and close the dialog?
# Some languages have different conjugations of 'next' and 'last'. If yours
# does not, simply repeat the value. This will be used with day names, as in
# 'next Sunday'.