diff API.txt @ 1:4215c43e74eb

Popups: Mise à jour en version alpha6
author Franck Deroche <franck@defr.org>
date Fri, 31 Dec 2010 13:44:00 +0100
parents 76f9b43738f2
children
line wrap: on
line diff
--- a/API.txt	Fri Dec 31 13:41:08 2010 +0100
+++ b/API.txt	Fri Dec 31 13:44:00 2010 +0100
@@ -1,28 +1,28 @@
-As well as attaching popup behavior to links, 
+As well as attaching popup behavior to links,
 Popups API provides javascript function for creating in-window popup messages.
 
 Popups.message(title, message)
   Produces a simple modal box with the title, message and "OK", "Cancel" buttons.
-  
+
 Popups.open(title, body, buttons, width)
   More powerful, allows you to specify what the buttons are and what they do.
   buttons is a hash of hash, with button title and function.
   * Example:
-  Drupal.popups.open( 
-    Drupal.t('Warning: Please Confirm'), 
+  Drupal.popups.open(
+    Drupal.t('Warning: Please Confirm'),
     Drupal.t("There are unsaved changes on this page, which you will lose if you continue."),
-    { 
+    {
       'popup_save': {
-        title: Drupal.t('Save Changes'), 
+        title: Drupal.t('Save Changes'),
         func: function(){Drupal.popups.savePage(element, options);}
       },
       'popup_submit': {
-        title: Drupal.t('Continue'), 
+        title: Drupal.t('Continue'),
         func: function(){Drupal.popups.removePopup(); Drupal.popups.openPath(element, options);}
       },
       'popup_cancel': {
         title: Drupal.t('Cancel'), func: Drupal.popups.close;
-      } 
+      }
     }
   );
 
@@ -34,4 +34,3 @@
  *   Hash of options controlling how the popups interacts with the underlying page.
  * @param parent
  *   If path is being opened from inside another popup, that popup is the parent.
-