Merge pull request #1978 from kinglozzer/1783-uninitialised-tabs

FIX: Attempting to select uninitialised tab on validation error (fixes #1783)
This commit is contained in:
Sam Minnée 2013-05-24 19:46:40 -07:00
commit 370a07aef2

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