diff --git a/assets/js/app/common.js b/assets/js/app/common.js index 7c89f8372..37860721b 100644 --- a/assets/js/app/common.js +++ b/assets/js/app/common.js @@ -68,7 +68,7 @@ $(document).ready(function() { ** When a field from another group is invalid, show it. */ $('#editor button[type="submit"]').click(function() { - $('input:invalid').each(function() { + $('#editor input:invalid').each(function() { // Find the tab-pane that this element is inside, and get the id var $closest = $(this).closest('.tab-pane'); var id = $closest.attr('id');