/[drupal]/contributions/modules/simplemenu/simplemenu.js
ViewVC logotype

Diff of /contributions/modules/simplemenu/simplemenu.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10.2.2, Wed Apr 1 01:12:53 2009 UTC revision 1.10.2.3, Wed Apr 1 02:15:09 2009 UTC
# Line 1  Line 1 
1  // $Id: simplemenu.js,v 1.10.2.1 2009/04/01 01:10:13 rz Exp $  // $Id: simplemenu.js,v 1.10.2.2 2009/04/01 01:12:53 rz Exp $
2    
3  Drupal.behaviors.simplemenuAttach = function(context) {  Drupal.behaviors.simplemenuAttach = function(context) {
4    // If detect pop-ups setting is enabled and we are in a pop-up window    // If detect pop-ups setting is enabled and we are in a pop-up window
# Line 6  Drupal.behaviors.simplemenuAttach = func Line 6  Drupal.behaviors.simplemenuAttach = func
6          return;          return;
7          }          }
8    
   // get the element to add the menu to  
   var element = Drupal.settings.simplemenu.element;  
   var menu = $(simplemenu).attr("id", "simplemenu").addClass('clear-block');  
   
   switch (Drupal.settings.simplemenu.placement) {  
     case 'prepend':  
       $(menu).prependTo(element);  
       break;  
     case 'append':  
       $(menu).appendTo(element);  
       break;  
     case 'replace':  
       $(element).html(menu);  
       break;  
   }  
   
9    $('body').addClass('simplemenu-enabled');    $('body').addClass('simplemenu-enabled');
10    
11    var animation = {};    var animation = {};
12    animation[Drupal.settings.simplemenu.effect] = 'toggle';    animation[Drupal.settings.simplemenu.effect] = 'toggle';
13    
14    // Build menu    // Build menu
15    $(menu)    $('#simplemenu')
16      .superfish( {      .superfish( {
17        animation: animation,        animation: animation,
18        delay: Drupal.settings.simplemenu.hideDelay,        delay: Drupal.settings.simplemenu.hideDelay,

Legend:
Removed from v.1.10.2.2  
changed lines
  Added in v.1.10.2.3

  ViewVC Help
Powered by ViewVC 1.1.2