Skip to content

Commit

Permalink
different plugin child classes per placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
vxsx committed May 14, 2016
1 parent 48b09d1 commit 9fc00ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cms/static/cms/js/modules/cms.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ var CMS = window.CMS || {};
_getPossibleChildClasses: function _getPossibleChildClasses() {
var that = this;
var childRestrictions = this.options.plugin_restriction;
var resultElements = $($('#cms-plugin-child-classes').html());
var resultElements = $($('#cms-plugin-child-classes-' + this.options.placeholder_id).html());

if (childRestrictions && childRestrictions.length) {
resultElements = resultElements.filter(function () {
Expand Down
2 changes: 1 addition & 1 deletion cms/templates/cms/toolbar/placeholder.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
}]);
</script>
<script id="cms-plugin-child-classes" type="text/cms-template">
<script id="cms-plugin-child-classes-{{ placeholder.pk|unlocalize }}" type="text/cms-template">
{% include request.toolbar.drag_item_menu_template %}
</script>
{% endlanguage %}
Expand Down

0 comments on commit 9fc00ec

Please sign in to comment.