[Building Sakai] Hide tool menu
Jaques Smith
jaques at psybergate.co.za
Mon Jun 21 23:15:31 PDT 2010
Super, thanks Gonzalo.
-----Original Message-----
From: Silverio, Gonzalo [mailto:gsilver at umich.edu]
Sent: 21 June 2010 10:16 PM
To: Jaques Smith
Subject: Re: [Building Sakai] Hide tool menu
Hi,
In your tool add the following:
<script type="text/javascript" src="/library/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#toggleToolMenu').toggle(function(e){
e.preventDefault();
$('#toolMenuWrap', window.parent.document).css({'width':'2px','overflow':'hidden'});
$('#content', window.parent.document).css({'margin-left':'1em'});
}, function(e) {
e.preventDefault();
$('#toolMenuWrap', window.parent.document).css({'width':'11em'});
$('#content', window.parent.document).css({'margin-left':'12.3em'});
});
});
</script>
<a id="toggleToolMenu" href="#">Toggle full width</a>
This should work in 2.6 - the above measurements assume the default Sakai skin - you will need to adjust for your case.
Thanks.
-Gonzalo
On Jun 21, 2010, at 4:03 AM, Jaques Smith wrote:
> Hi all,
>
> Is it possible to show-hide/open-close the tool menu in a site in Sakai 2.6? The idea would be that there is a clickable item in the tool to hide the menu so the tool has more realastate and the same again to show the menu.
>
> Thanks,
> Jaques
> <ATT00001..txt>
More information about the sakai-dev
mailing list