';
// end of the column
}
// destroy the original contents
$('#dragzone_contents_' + uniqueDiv).remove();
// write the new contents in
$('#dragzone_stack_' + uniqueDiv).append(output);
// add the event handler for resetting the positions and states
resetPositionsAndStatesEventHandler();
}
function makeDragPorts()
{
$("#dragzone_stack_" + uniqueDiv + " .dragzone-column").sortable({
connectWith: '.dragzone-column',
tolerance: 'pointer',
revert: true,
opacity: 0.6,
update: function() {
saveOrder();
}
});
$("#dragzone_stack_" + uniqueDiv + " .dragport").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
.find(".dragport-header")
.addClass("ui-widget-header ui-corner-all")
.prepend('')
.end()
.find(".dragport-content");
$("#dragzone_stack_" + uniqueDiv + " .dragport-header .ui-icon").click(function() {
// IE 8 has a weird problem. if we use .toggle(), those boxes which start minimized will be joined one after
// another vertically, without spaces between them. So we don't use toggle for it.
if ($.browser.msie && (parseInt($.browser.version) == 8)) {
$(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick");
var displayStatus = $(this).parents(".dragport:first").find(".dragport-content").css('display');
if (displayStatus == 'block') {
$(this).parents(".dragport:first").find(".dragport-content").css('display', 'none');
}
else if (displayStatus == 'none') {
$(this).parents(".dragport:first").find(".dragport-content").css('display', 'block');
}
}
else {
$(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick");
$(this).parents(".dragport:first").find(".dragport-content").toggle();
}
// save the state whenever there is a click
saveStatesOfPortlets();
});
if (!selectableText) {
$("#dragzone_stack_" + uniqueDiv + " .dragzone-column").disableSelection();
}
else {
$("#dragzone_stack_" + uniqueDiv + " .dragzone-column").sortable('option', 'handle', '.dragport-header');
}
}
function restoreOrder() {
// go through the current portlets on the page and get all their ids
var listOfCurrentPortlets = $("#dragzone_stack_" + uniqueDiv + ' .dragport');
if (listOfCurrentPortlets == null) {
return; // only proceed if we do have a list
}
for (var numberOfColumns = 1; numberOfColumns */
[Title]FIXTURES[/Title]
[Title]FOREST PLAYERS[/Title]
The Most Comprehensive Forest Player Database on the Internet! Online stats for every Forest player since 1865!