mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
Fix specificity on panel heading.
Needs to be specific so I can put an accordion inside. 😎
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user