Skip to content

Commit 15949be

Browse files
committed
Merge pull request adamwulf#92 from faizshukri/master
Fix order list split
2 parents 2a35668 + a9012e3 commit 15949be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/jquery.columnizer.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,13 @@
271271
// this node still has non-text nodes to split
272272
// add the split class and then recur
273273
$cloneMe.addClass(prefixTheClassName("split"));
274+
275+
//if this node was ol element, the child should continue the number ordering
276+
if($cloneMe.get(0).tagName == 'OL'){
277+
var startWith = $clone.get(0).childElementCount + $clone.get(0).start;
278+
$cloneMe.attr('start',startWith+1);
279+
}
280+
274281
if($cloneMe.children().length){
275282
split($clone, $cloneMe, $parentColumn, targetHeight);
276283
}

0 commit comments

Comments
 (0)