Merge pull request #3161 from yariplus/patch-1

Fix specificity on ACP widget panel heading.
v1.18.x
psychobunny 10 years ago
commit f1f028b89c

@ -58,9 +58,9 @@ define('admin/extend/widgets', function() {
panel.remove(); panel.remove();
} }
}); });
}).on('mouseup', '.panel-heading', function(evt) { }).on('mouseup', '> .panel > .panel-heading', function(evt) {
if ( !( $(this).parents('.widget-panel').is('.ui-sortable-helper') || $(evt.target).closest('.delete-widget').length ) ) { if ( !( $(this).parent().is('.ui-sortable-helper') || $(evt.target).closest('.delete-widget').length ) ) {
$(this).parents('.widget-panel').children('.panel-body').toggleClass('hidden'); $(this).parent().children('.panel-body').toggleClass('hidden');
} }
}); });

Loading…
Cancel
Save