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
-~----------~----~----~----~------~----~------~--~---