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:
@@ -179,7 +179,7 @@ $('#export-form').on('submit', function() {
|
||||
var sOQL = $('#textarea_oql').val();
|
||||
if (sOQL == '')
|
||||
{
|
||||
alert($sJSEmptyOQL);
|
||||
CombodoModal.OpenErrorModal($sJSEmptyOQL);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -188,7 +188,7 @@ $('#export-form').on('submit', function() {
|
||||
var sQueryId = $('#select_phrasebook').val();
|
||||
if (sQueryId == '')
|
||||
{
|
||||
alert($sJSEmptyQueryId);
|
||||
CombodoModal.OpenErrorModal($sJSEmptyQueryId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user