Annotation of kupuMPIWG/common/kupusaveonpart.js, revision 1.1.1.1
1.1 dwinter 1: /*****************************************************************************
2: *
3: * Copyright (c) 2003-2005 Kupu Contributors. All rights reserved.
4: *
5: * This software is distributed under the terms of the Kupu
6: * License. See LICENSE.txt for license text. For a list of Kupu
7: * Contributors see CREDITS.txt.
8: *
9: *****************************************************************************/
10:
11: // $Id: kupusaveonpart.js 9879 2005-03-18 12:04:00Z yuppie $
12:
13: function saveOnPart() {
14: /* ask the user if (s)he wants to save the document before leaving */
15: if (kupu.content_changed &&
16: confirm(_('You have unsaved changes. Do you want to save before leaving the page?'))) {
17: kupu.config.reload_src = 0;
18: kupu.saveDocument(false, true);
19: };
20: };
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>