apostrophe-blocks
Advanced tools
Comparing version 0.5.54 to 0.5.55
{ | ||
"name": "apostrophe-blocks", | ||
"version": "0.5.54", | ||
"version": "0.5.55", | ||
"description": "Allows a column of content to be broken up into blocks with independent templates, allowing for sub-columns to alternate with a full width column for instance. Blocks can be added and removed freely.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,5 +52,5 @@ function AposBlocks() { | ||
var $blocks = $el.find('[data-apos-blocks]'); | ||
var $blocks = $el.findSafe('[data-apos-blocks]','[data-block-group]'); | ||
var slug = $el.attr('data-slug'); | ||
var $template = $el.find('[data-block-wrapper].apos-template'); | ||
var $template = $el.findSafe('[data-block-wrapper].apos-template','[data-block-group]'); | ||
$template.remove(); | ||
@@ -137,6 +137,7 @@ var group = $el.attr('data-block-group'); | ||
} | ||
return false; | ||
}); | ||
$el.on('click', '[data-move-block]', function() { | ||
var $wrapper = $(this).parents('[data-block-wrapper]'); | ||
var $wrapper = $(this).closest('[data-block-wrapper]'); | ||
var direction = $(this).attr('data-move-block'); | ||
@@ -179,2 +180,3 @@ | ||
} | ||
return false; | ||
@@ -181,0 +183,0 @@ }); |
26712
481