From: Aleksander Ɓukasz Date: Thu, 27 Jun 2013 11:39:56 +0000 (+0200) Subject: Fixing list removal X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/756c5554a2b6a23eb95a7e538b4fe45f06b644e5 Fixing list removal --- diff --git a/modules/documentCanvas/canvas.js b/modules/documentCanvas/canvas.js index d0629d3..baa2f3c 100644 --- a/modules/documentCanvas/canvas.js +++ b/modules/documentCanvas/canvas.js @@ -172,7 +172,7 @@ Canvas.prototype.listCreate = function(options) { Canvas.prototype.listRemove = function(options) { var pointerElement = $(this.content.find('#' + options.pointer.getId())); var listElement = options.pointer.getClass() === 'list-items' ? pointerElement : - pointerElement.parent('[wlxml-class="list-items"][wlxml-tag]'); + pointerElement.parents('[wlxml-class|="list-items"][wlxml-tag]'); listElement.find('[wlxml-class=item]').each(function() { $(this).removeAttr('wlxml-class');