Skip to content

Commit

Permalink
[Backoffice] Fix frontend tab selection when errors occur. Fixes #102
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Oct 23, 2015
1 parent 8a8bd41 commit 8abca90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$.listen('parsley:form:validated', function() {
var $tabPanel = $form.find('.tabpanel');
if ($tabPanel.length) {
var $firstError = $tabPanel.find('.parsley-error').first();
var $firstError = $tabPanel.find('.has-error').first();
if ($firstError.length) {
var $tab = $form.find('[role="tablist"] li').eq($firstError.closest('.tab-pane').index());
$tab.find('a').tab('show');
Expand Down

0 comments on commit 8abca90

Please sign in to comment.