Révision bad4e148
Ajouté par Assos Assos il y a presque 3 ans
drupal7/sites/all/modules/dhtml_menu/dhtml_menu.js | ||
---|---|---|
105 | 105 |
}); |
106 | 106 |
} |
107 | 107 |
|
108 |
/** |
|
109 |
* If link is a placeholder (ie from special_menu_items module) make sure that |
|
110 |
* when you click it, the children show |
|
111 |
*/ |
|
112 |
if (link.attr('href') == '#') { |
|
113 |
link.click(function(e) { |
|
114 |
Drupal.dhtmlMenu.toggleMenu(li, link, ul); |
|
115 |
if (settings.effects.remember) { |
|
116 |
Drupal.dhtmlMenu.cookieSet(); |
|
117 |
} |
|
118 |
return false; |
|
119 |
}); |
|
120 |
} |
|
121 |
|
|
108 | 122 |
/* When using bullet expansion: |
109 | 123 |
* - Change the icon to a folder image |
110 | 124 |
* - Add the clickable overlay and its handler |
... | ... | |
198 | 212 |
}); |
199 | 213 |
|
200 | 214 |
// When using LTR, all icons can be shifted as one, as the text width is not relevant. |
201 |
if (settings.nav == 'bullet' && !rtl && $('.menu li.dhtml-folder').length) { |
|
215 |
if (settings.nav == 'bullet' && $('.menu li').length && !rtl && $('.menu li.dhtml-folder').length) {
|
|
202 | 216 |
// Shift overlay to the left by the width of the icon and the distance between icon and text. |
203 | 217 |
if ($('.menu li').hasClass('margin-left')) { |
204 | 218 |
// Saved for a later backport if needs. |
Formats disponibles : Unified diff
Weekly update of contrib modules