470
edits
No edit summary |
No edit summary |
||
Line 135: | Line 135: | ||
var leftDiv = $("<div/>").addClass("grid_col"); | var leftDiv = $("<div/>").addClass("grid_col"); | ||
var rightDiv = $("<div/>").addClass("grid_col"); | var rightDiv = $("<div/>").addClass("grid_col"); | ||
var parentHieght = (divide2cols.height()/2); | |||
divide2cols.find("dl").each(function() { | divide2cols.find("dl").each(function() { | ||
if ( $(this).offset().top > parentHieght ) { | |||
if ( $(this).offset().top > | |||
rightDiv.append( $(this), $(this).next() ); | rightDiv.append( $(this), $(this).next() ); | ||
} else { | } else { |