brilliant, thank you very much... first one worked better for me, i have an accordian menu nested in the portlet and the second option there made the menu links disappear initially.
Otherwise it works great thanks! On Oct 15, 4:01 am, "Richard D. Worth" <[email protected]> wrote: > Change > $(".portlet-header .ui-icon").click(function() { > $(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick"); > $(this).parents(".portlet:first").find(".portlet-content").toggle(); > > }); > > to > > $(".portlet-header .ui-icon").click(function() { > $(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick"); > $(this).parents(".portlet:first").find(".portlet-content").toggle(); > > })*.click()*; > > OR, change > > $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix > ui-corner-all") > .find(".portlet-header") > .addClass("ui-widget-header ui-corner-all") > .prepend('<span class="ui-icon ui-icon-*minus*thick"></span>') > .end() > .find(".portlet-content"); > > to > > $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix > ui-corner-all") > .find(".portlet-header") > .addClass("ui-widget-header ui-corner-all") > .prepend('<span class="ui-icon ui-icon-*plus*thick"></span>') > .end() > .find(".portlet-content")*.toggle()*; > > - Richard > > > > On Thu, Oct 15, 2009 at 1:02 AM, Rebelj12a <[email protected]> wrote: > > > Ok, i was wondering if anyone knew how to make the sortable portlets > > default position closed, instead of open. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
