| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 // $Id: script.js,v 1.1.2.5 2010/04/08 07:02:59 sociotech Exp $ 2 3 Drupal.behaviors.fusionEqualheights = function (context) { 4 if (jQuery().equalHeights) { 5 $("#header-top-wrapper div.equal-heights div.content").equalHeights(); 6 $("#header-group-wrapper div.equal-heights div.content").equalHeights(); 7 $("#preface-top-wrapper div.equal-heights div.content").equalHeights(); 8 $("#preface-bottom div.equal-heights div.content").equalHeights(); 9 $("#sidebar-first div.equal-heights div.content").equalHeights(); 10 $("#content-top div.equal-heights div.content").equalHeights(); 11 $("#content-region div.equal-heights div.content").equalHeights(); 12 $("#content-bottom div.equal-heights div.content").equalHeights(); 13 $("#node-top div.equal-heights div.content").equalHeights(); 14 $("#node-bottom div.equal-heights div.content").equalHeights(); 15 $("#sidebar-last div.equal-heights div.content").equalHeights(); 16 $("#postscript-top div.equal-heights div.content").equalHeights(); 17 $("#postscript-bottom-wrapper div.equal-heights div.content").equalHeights(); 18 $("#footer-wrapper div.equal-heights div.content").equalHeights(); 19 } 20 }; 21 22 Drupal.behaviors.fusionIE6fixes = function (context) { 23 // IE6 & less-specific functions 24 // Add hover class to primary menu li elements on hover 25 if ($.browser.msie && ($.browser.version < 7)) { 26 $('form input.form-submit').hover(function() { 27 $(this).addClass('hover'); 28 }, function() { 29 $(this).removeClass('hover'); 30 }); 31 $('#primary-menu ul.sf-menu li.expanded').hover(function() { 32 $(this).addClass('hover'); 33 }, function() { 34 $(this).removeClass('hover'); 35 }); 36 $('.sf-menu li').hover(function() { 37 $(this).addClass('hover'); 38 }, function() { 39 $(this).removeClass('hover'); 40 }); 41 $('#search input#search_header').hover(function() { 42 $(this).addClass('hover'); 43 }, function() { 44 $(this).removeClass('hover'); 45 }); 46 }; 47 }; 48 49 Drupal.behaviors.fusionOverlabel = function (context) { 50 if (jQuery().overlabel) { 51 $("div.fusion-horiz-login label").overlabel(); 52 } 53 }; 54 55 Drupal.behaviors.fusionSuperfish = function (context) { 56 $("#primary-menu ul.sf-menu").superfish({ 57 hoverClass: 'sfHover', 58 delay: 250, 59 animation: {opacity:'show',height:'show'}, 60 speed: 'fast', 61 autoArrows: false, 62 dropShadows: false, 63 disableHI: true 64 }).supposition(); 65 }; 66 67 Drupal.behaviors.fusionSuperfishBlocks = function (context) { 68 $("div.block ul.sf-menu").superfish({ 69 hoverClass: 'sfHover', 70 delay: 250, 71 animation: {opacity:'show',height:'show'}, 72 speed: 'fast', 73 autoArrows: false, 74 dropShadows: false, 75 disableHI: true 76 }).supposition(); 77 }; 78 79 Drupal.behaviors.fusionGridMask = function (context) { 80 if ($('body.grid-mask-enabled').size() > 0) { 81 var grid_width_pos = parseInt($('body').attr('class').indexOf('grid-width-')) + 11; 82 var grid_width = $('body').attr('class').substring(grid_width_pos, grid_width_pos + 2); 83 var grid = '<div id="grid-mask-overlay" class="full-width"><div class="row">'; 84 for (i = 1; i <= grid_width; i++) { 85 grid += '<div class="block grid' + grid_width + '-1"><div class="inner"></div></div>'; 86 } 87 grid += '</div></div>'; 88 $('body.grid-mask-enabled').prepend(grid); 89 $('#grid-mask-overlay .row').addClass('grid' + grid_width + '-' + grid_width); 90 $('#grid-mask-overlay .block .inner').height($('body').height()); 91 } 92 }; 93 94 Drupal.behaviors.fusionGridMaskToggle = function (context) { 95 if ($('body.grid-mask-enabled').size() > 0) { 96 $('body.grid-mask-enabled').prepend('<div id="grid-mask-toggle">grid</div>'); 97 $('div#grid-mask-toggle') 98 .toggle( function () { 99 $(this).toggleClass('grid-on'); 100 $('body').toggleClass('grid-mask'); 101 }, 102 function() { 103 $(this).toggleClass('grid-on'); 104 $('body').toggleClass('grid-mask'); 105 }); 106 } 107 }; 108 109 Drupal.behaviors.fusionPanelsShowEdit = function (context) { 110 // Sets parent row and block elements to have "overflow: visible" if editing Panel page 111 if ($("#panels-edit-display-form").size() > 0 || $("#page-manager-edit").size() > 0) { 112 $("#panels-edit-display-form").parents('.row, .block').css("overflow", "visible"); 113 $("#page-manager-edit").parents('.row, .block').css("overflow", "visible"); 114 } 115 }; 116
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |