Permalink
Browse files

disallow plugins within disabled items

  • Loading branch information...
1 parent 4498df2 commit 30eca1254d822bf90b99cf778a5d2ccae7ae2e1a @FinalAngel FinalAngel committed Feb 27, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 cms/static/cms/js/plugins/cms.structureboard.js
@@ -424,6 +424,9 @@ $(document).ready(function () {
if(plugin.length) bounds = plugin.data('settings').plugin_restriction;
if(holder.length) bounds = holder.data('settings').plugin_restriction;
+ // if parent has class disabled, dissalow drop
+ if(placeholder.parent().hasClass('cms_draggable-disabled')) return false;
+
// if restrictions is still empty, proceed
that.state = (bounds.length <= 0 || $.inArray(type, bounds) !== -1) ? true : false;

0 comments on commit 30eca12

Please sign in to comment.