mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX: Fix not switching to the correct tab on validation error.
This commit is contained in:
parent
ed9f8dcf1f
commit
a63b9c9d5d
@ -93,7 +93,7 @@
|
||||
var firstTabWithErrors = this.find('.message.validation:first').closest('.tab');
|
||||
$('.cms-container').clearCurrentTabState(); // clear state to avoid override later on
|
||||
this.redraw();
|
||||
firstTabWithErrors.closest('.cms-tabset').tabs('select', firstTabWithErrors.attr('id'));
|
||||
firstTabWithErrors.closest('.ss-tabset').tabs('select', firstTabWithErrors.attr('id'));
|
||||
}
|
||||
|
||||
this._super();
|
||||
|
Loading…
x
Reference in New Issue
Block a user