mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Attempting to select uninitialised tab on validation error (fixes #1783)
This commit is contained in:
parent
14771ff31f
commit
c8725d1c93
@ -92,7 +92,8 @@
|
||||
// Ensure the first validation error is visible
|
||||
var firstTabWithErrors = this.find('.message.validation:first').closest('.tab');
|
||||
$('.cms-container').clearCurrentTabState(); // clear state to avoid override later on
|
||||
firstTabWithErrors.closest('.tabset').tabs('select', firstTabWithErrors.attr('id'));
|
||||
this.redraw();
|
||||
firstTabWithErrors.closest('.cms-tabset').tabs('select', firstTabWithErrors.attr('id'));
|
||||
}
|
||||
|
||||
this._super();
|
||||
|
Loading…
x
Reference in New Issue
Block a user