Attempting to select uninitialised tab on validation error (fixes #1783)

This commit is contained in:
Loz Calver 2013-05-23 16:01:27 +01:00
parent 14771ff31f
commit c8725d1c93

View File

@ -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();