[Building Sakai] Hide tool menu
Jaques Smith
jaques at psybergate.co.za
Tue Jun 22 01:33:08 PDT 2010
Yes, that sound great, it should be a Sakai function and not a tool function.
Jaques
-----Original Message-----
From: Steve Swinsburg [mailto:steve.swinsburg at gmail.com]
Sent: 22 June 2010 10:04 AM
To: Jaques Smith
Cc: Silverio, Gonzalo; sakai-dev at collab.sakaiproject.org; csev
Subject: Re: [Building Sakai] Hide tool menu
As Chuck mentioned, I think something like this would be pretty neat to get into 2.8. I'm imagining an enhancement where you could collapse the menu down to a format where only the icons are visible, then expand it back out again, similar to how it appears in Blackboard (but better ;).
cheers,
Steve
On 22/06/2010, at 4:15 PM, Jaques Smith wrote:
> 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>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
More information about the sakai-dev
mailing list