mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 19:18:44 +02: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:
@@ -38,7 +38,7 @@ $(function()
|
||||
if (data.data.success === true) {
|
||||
me.$tableSettingsDialog.DataTableSettings('DoRefresh');
|
||||
} else {
|
||||
CombodoModal.OpenInformativeModal(data.data.error_message, 'error');
|
||||
CombodoModal.OpenErrorModal(data.data.error_message);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -59,7 +59,7 @@ $(function()
|
||||
if (data.data.success === true) {
|
||||
me.$tableSettingsDialog.DataTableSettings('DoRefresh');
|
||||
} else {
|
||||
CombodoModal.OpenInformativeModal(data.data.error_message, 'error');
|
||||
CombodoModal.OpenErrorModal(data.data.error_message);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user