Commit bfe1900b authored by Ghislain Loas's avatar Ghislain Loas

hotline #72329 fix toggle menu

parent d75e660c
- 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 ...@@ -106,7 +106,7 @@ class ZendAfi_View_Helper_Accueil_MenuVertical extends ZendAfi_View_Helper_Accue
Class_ScriptLoader::getInstance() Class_ScriptLoader::getInstance()
->addOPACScript('toggle_menu.js') ->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()) if(Class_Profil::getCurrentProfil()->isResponsive())
return Class_ScriptLoader::getInstance() return Class_ScriptLoader::getInstance()
......
...@@ -5,8 +5,9 @@ $(document).ready(function() { ...@@ -5,8 +5,9 @@ $(document).ready(function() {
$(this).toggleClass('show_menu'); $(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('.configuration_module *,[class*="edit_"], [class*="edit_"] *')
.not('.menu_vertical.toggle_menu h1')
.click(function(e) { .click(function(e) {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
}); });
......
(function ( $ ) { (function ( $ ) {
$.fn.toggle_menu_slider = function () { $.fn.toggle_menu_slider = function () {
var html = $(this); var html = $(this);
html.find('h1').bind('click', function(event) { html.find('h1').click(function(event) {
html.toggleClass('show_menu'); html.toggleClass('show_menu');
html.find('a').removeAttr('onclick'); html.find('a').removeAttr('onclick');
}); });
......
Markdown is supported
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