Skip to content
Snippets Groups Projects
Commit bfe1900b authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #72329 fix toggle menu

parent d75e660c
Branches
Tags
2 merge requests!2529Hotline,!2526hotline #72329 fix toggle menu
Pipeline #3592 failed with stage
in 31 minutes and 55 seconds
- ticket #72329 : Menu vertical : correction de la compatibilité du menu à bascule avec le responsive.
\ No newline at end of file
......@@ -106,7 +106,7 @@ class ZendAfi_View_Helper_Accueil_MenuVertical extends ZendAfi_View_Helper_Accue
Class_ScriptLoader::getInstance()
->addOPACScript('toggle_menu.js')
->addJQueryReady(sprintf('$("#header #boite_%d").toggle_menu_slider();', $this->id_module));
->addJQueryReady(sprintf('$(\'#boite_%s\').toggle_menu_slider();', $this->id_module));
if(Class_Profil::getCurrentProfil()->isResponsive())
return Class_ScriptLoader::getInstance()
......
......@@ -5,8 +5,9 @@ $(document).ready(function() {
$(this).toggleClass('show_menu');
});
$("div:not(.boite)[class*='menu_horizontal'] *, .menu_vertical.toggle_menu * ")
$("div:not(.boite)[class*='menu_horizontal'] *, .menu_vertical.toggle_menu *")
.not('.configuration_module *,[class*="edit_"], [class*="edit_"] *')
.not('.menu_vertical.toggle_menu h1')
.click(function(e) {
e.stopImmediatePropagation();
});
......
(function ( $ ) {
$.fn.toggle_menu_slider = function () {
var html = $(this);
html.find('h1').bind('click', function(event) {
html.find('h1').click(function(event) {
html.toggleClass('show_menu');
html.find('a').removeAttr('onclick');
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment