How can I prevent from the page to go to top when I click the specials block in order to expand it?
(theme: floOS)
Offline
hello
in each themeconf.inc.php ( template/floOS/theme/#for each theme#/ )
replace :
'local_head' => ' <script type="text/javascript" src="template-common/lib/jquery.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
$(".titre_acordeon").click(function() {
$(this).next().toggle("medium");
}).next().hide();
});
jQuery(document).ready(function(){
$(".titre_acordeon_0").click(function() {
$(this).next().toggle("medium");
}).next().show();
});
</script>
<!--[if lt IE 7]> [...]
by
'local_head' => ' <!--[if lt IE 7]> [...]
Offline
It didn't do the right thing.It did that all the menus on the left became always open
Offline
11alex11 wrote:
It didn't do the right thing.It did that all the menus on the left became always open
ho sorry I didn't really understand your question !
well : undo this modification and now the right answer : in the template folder, open these files :
menubar_categories.tpl
menubar_identification.tpl
menubar_links.tpl
menubar_menu.tpl
menubar_specials.tpl
menubar_tags.tpl
then, in each file you will see that :
<dt class="titre_acordeon"><a href="#"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{$block->get_title()|@translate}</a></dt>
In order to prevent jump replace <a href="#" by <a href="javascript:void(0);"
tell me if you succeed or not
Offline
It worked perfectly! Thanks
Offline