Révision 2392401e
Ajouté par Assos Assos il y a presque 6 ans
drupal7/sites/all/modules/admin_menu/admin_menu.js | ||
---|---|---|
1 |
(function($) { |
|
1 |
/** |
|
2 |
* @file |
|
3 |
*/ |
|
4 |
|
|
5 |
(function ($) { |
|
2 | 6 |
|
3 | 7 |
Drupal.admin = Drupal.admin || {}; |
4 | 8 |
Drupal.admin.behaviors = Drupal.admin.behaviors || {}; |
... | ... | |
139 | 143 |
* |
140 | 144 |
* @see toolbar.js |
141 | 145 |
*/ |
142 |
Drupal.admin.height = function() { |
|
146 |
Drupal.admin.height = function () {
|
|
143 | 147 |
var $adminMenu = $('#admin-menu'); |
144 | 148 |
var height = $adminMenu.outerHeight(); |
145 | 149 |
// In IE, Shadow filter adds some extra height, so we need to remove it from |
... | ... | |
161 | 165 |
Drupal.admin.attachBehaviors = function (context, settings, $adminMenu) { |
162 | 166 |
if ($adminMenu.length) { |
163 | 167 |
$adminMenu.addClass('admin-menu-processed'); |
164 |
$.each(Drupal.admin.behaviors, function() { |
|
168 |
$.each(Drupal.admin.behaviors, function () {
|
|
165 | 169 |
this(context, settings, $adminMenu); |
166 | 170 |
}); |
167 | 171 |
} |
... | ... | |
206 | 210 |
*/ |
207 | 211 |
Drupal.admin.behaviors.destination = function (context, settings, $adminMenu) { |
208 | 212 |
if (settings.admin_menu.destination) { |
209 |
$('a.admin-menu-destination', $adminMenu).each(function() { |
|
213 |
$('a.admin-menu-destination', $adminMenu).each(function () {
|
|
210 | 214 |
this.search += (!this.search.length ? '?' : '&') + Drupal.settings.admin_menu.destination; |
211 | 215 |
}); |
212 | 216 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules