mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3426 - Wrong tab is displayed when a creation or modification form is invalidated
This commit is contained in:
@@ -192,7 +192,7 @@ function activateFirstTabWithError(sFormId) {
|
|||||||
if ($fieldsWithError.length > 0)
|
if ($fieldsWithError.length > 0)
|
||||||
{
|
{
|
||||||
$tabsContainer.tabs("option", "active", index);
|
$tabsContainer.tabs("option", "active", index);
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -218,7 +218,7 @@ function ReportFieldValidationStatus(sFieldId, sFormId, bValid, sExplain)
|
|||||||
if ($('#v_'+sFieldId+' img').length == 0)
|
if ($('#v_'+sFieldId+' img').length == 0)
|
||||||
{
|
{
|
||||||
$('#v_'+sFieldId).html('<img src="../images/validation_error.png" style="vertical-align:middle" data-tooltip="'+sExplain+'"/>');
|
$('#v_'+sFieldId).html('<img src="../images/validation_error.png" style="vertical-align:middle" data-tooltip="'+sExplain+'"/>');
|
||||||
}
|
}X
|
||||||
//Avoid replacing exisiting tooltip for periodically checked element (like CKeditor fields)
|
//Avoid replacing exisiting tooltip for periodically checked element (like CKeditor fields)
|
||||||
if($('#v_'+sFieldId).tooltip( "instance" ) === undefined)
|
if($('#v_'+sFieldId).tooltip( "instance" ) === undefined)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user