Skip to content

Commit

Permalink
fixed: addable-box not closing
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed May 18, 2016
1 parent 7fa5c26 commit 704c6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/static/js/backend-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jQuery(document).ready(function($){
.on('click'+ eventNamespace, '> .hndle, > .handlediv', function(e){
var $box = $(this).closest('.fw-postbox');

if (!$box.siblings().length) {
if ($box.parent().is('.fw-backend-postboxes') && !$box.siblings().length) {
// Do not close if only one box https://github.com/ThemeFuse/Unyson/issues/1094
$box.removeClass('closed');
} else {
Expand Down

0 comments on commit 704c6e6

Please sign in to comment.