From 2b4d7254abd8acb12dcddda20c9db6b81c3abc3e Mon Sep 17 00:00:00 2001 From: Faiz Shukri Date: Tue, 19 Feb 2013 12:05:49 +0800 Subject: [PATCH 1/2] fix split order list element --- src/jquery.columnizer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/jquery.columnizer.js b/src/jquery.columnizer.js index d7cb7b6..39007f3 100644 --- a/src/jquery.columnizer.js +++ b/src/jquery.columnizer.js @@ -276,6 +276,13 @@ // this node still has non-text nodes to split // add the split class and then recur $cloneMe.addClass(prefixTheClassName("split")); + + //if this node was ol element, the child should continue the number ordering + var startWith = $clone.get(0).childElementCount + $clone.get(0).start; + if($cloneMe.get(0).tagName == 'OL'){ + $cloneMe.attr('start',startWith+1); + } + if($cloneMe.children().length){ split($clone, $cloneMe, $parentColumn, targetHeight); } From a9012e3d25abd4e6b1c5356629c1edd5d68f3f87 Mon Sep 17 00:00:00 2001 From: Faiz Shukri Date: Tue, 19 Feb 2013 12:12:43 +0800 Subject: [PATCH 2/2] fix split order list element --- src/jquery.columnizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.columnizer.js b/src/jquery.columnizer.js index 39007f3..d762332 100644 --- a/src/jquery.columnizer.js +++ b/src/jquery.columnizer.js @@ -278,8 +278,8 @@ $cloneMe.addClass(prefixTheClassName("split")); //if this node was ol element, the child should continue the number ordering - var startWith = $clone.get(0).childElementCount + $clone.get(0).start; if($cloneMe.get(0).tagName == 'OL'){ + var startWith = $clone.get(0).childElementCount + $clone.get(0).start; $cloneMe.attr('start',startWith+1); }