Skip to content

Commit

Permalink
fix error notice not showing up for all containers
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas2create committed Jan 11, 2017
1 parent ff5ad60 commit 84635dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ window.carbon = window.carbon || {};
$errorHolder.find('strong').text(errorText);
} else {
$errorHolder = $('<div class="settings-error error hidden below-h2 carbon-error-required"><p><strong>' + errorText + '</strong></p></div>');
$errorHolder.insertAfter('#wpbody-content > .wrap > h2').slideDown();
var $target = $('#wpbody-content > .wrap > :header:first');
while ( $target.next( 'a' ).length > 0 ) {
$target = $target.next( 'a' );
}
$errorHolder.insertAfter( $target ).show();
}
var $firstErrorField = $('.carbon-highlight :input:first');

Expand Down

0 comments on commit 84635dc

Please sign in to comment.