[ Index ]
 

Code source de Kupu-1.3.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/common/ -> kupusaveonpart.js (source)

   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 22453 2006-01-19 16:40:56Z guido $
  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 are leaving the editor. Do you want to save your changes?'))) {
  17          kupu.config.reload_src = 0;
  18          kupu.saveDocument(false, true);
  19      };
  20  };


Généré le : Sun Feb 25 15:30:41 2007 par Balluche grâce à PHPXref 0.7