From: Aleksander Ɓukasz Date: Mon, 17 Feb 2014 14:59:38 +0000 (+0100) Subject: wlxml: fix - keep list class for both lists created from extracting items X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/3c2d50510170c47e218d6a7fc31f98dee16b1a1b?hp=d8865b93d11a624bd55e55d2a9e92ad6c4bacde5 wlxml: fix - keep list class for both lists created from extracting items --- diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index 2487107..2a996ac 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -138,7 +138,7 @@ extension.document.transformations.extractItems = { } reference = item; }); - var secondList = params.item1.document.createDocumentNode({tagName: 'div', attrs: {'class':'list'}}), + var secondList = params.item1.document.createDocumentNode({tagName: 'div', attrs: {'class': list.getClass() || 'list'}}), toAdd = secondList; if(listIsNested) {