mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
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:
parent
81b3f34473
commit
c922968d37
@ -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"));
|
||||
}
|
||||
|
@ -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'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user