Annotation of kupuMPIWG/plone/kupu_plone_layer/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(evt) {
                     14:     /* ask the user if (s)he wants to save the document before leaving */
                     15:     if (!evt) evt = window.event;
                     16:     if (kupu.content_changed) {
                     17:         var msg = 'You have unsaved changes in Kupu.';
                     18:         if (evt) {
                     19:             evt.returnValue = msg;
                     20:         }
                     21:         return msg;
                     22:     };
                     23: };

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>