mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°4051 Add robustness
This commit is contained in:
@@ -197,7 +197,7 @@ function activateFirstTabWithError(sFormId) {
|
||||
|
||||
$tabs.each(function (index, element) {
|
||||
var $fieldsWithError = $(element).find(".form_validation");
|
||||
if ($fieldsWithError.length > 0)
|
||||
if ($fieldsWithError.length > 0 && ($tabsContainer.tabs("instance") !== undefined))
|
||||
{
|
||||
$tabsContainer.tabs("option", "active", index);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user