mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3795 - Replace JS alert native calls with centralized informative modals (#456)
* N°3795 - Replace JS alert native calls with centralized informative modals * N°3795 - Add constants for severity * N°3795 - Fix success severity value wrongfully set to 'error' * N°3795 - Add constants for severity * N°3795 - Simplify API consumption * N°3795 - Allows to pass more options when consuming API
This commit is contained in:
@@ -155,7 +155,7 @@ function CheckFields(sFormId, bDisplayAlert)
|
||||
// if some fields are in wait, no submit is allowed
|
||||
if ($('#'+sFormId+' .blockMsg').length>0)
|
||||
{
|
||||
alert(Dict.S('UI:Button:Wait'));
|
||||
CombodoModal.OpenWarningModal(Dict.S('UI:Button:Wait'));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ function CheckFields(sFormId, bDisplayAlert)
|
||||
if (bDisplayAlert)
|
||||
{
|
||||
activateFirstTabWithError(sFormId);
|
||||
alert(Dict.S('UI:FillAllMandatoryFields'));
|
||||
CombodoModal.OpenErrorModal(Dict.S('UI:FillAllMandatoryFields'));
|
||||
}
|
||||
$('#'+sFormId+' :submit').prop('disable', false);
|
||||
$('#'+sFormId+' :button[type=submit]').prop('disable', false);
|
||||
|
||||
Reference in New Issue
Block a user