Permalink
Browse files

Merge pull request #2719 from FinalAngel/fixes/2576

fixes issue #2576
  • Loading branch information...
2 parents f35fa32 + 295b332 commit 28b70a444050734880a107fe293dd965adb576e6 @digi604 digi604 committed Feb 25, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 cms/static/cms/js/plugins/cms.plugins.js
@@ -112,6 +112,10 @@ $(document).ready(function () {
var el = $(e.delegateTarget);
var dragitem = $('.cms_draggable-' + el.data('settings').plugin_id);
var placeholder_id = that._getId(dragitem.parents('.cms_draggables').last().prevAll('.cms_dragbar').first());
+
+ // if placeholder_id is empty, cancel
+ if(!placeholder_id) return false;
+
var data = el.data('settings');
data.target = placeholder_id;
data.parent= that._getId(dragitem.parent().closest('.cms_draggable'));

0 comments on commit 28b70a4

Please sign in to comment.