mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-20 21:49:27 +00:00
Added alert/exit when no lehrauftrag was selected
This commit is contained in:
@@ -162,6 +162,13 @@ $(function() {
|
||||
|
||||
var selected_data = $('#filterTabulator').tabulator('getSelectedData');
|
||||
|
||||
// Alert and exit if no lehraufgang is selected
|
||||
if (selected_data.length == 0)
|
||||
{
|
||||
FHC_DialogLib.alertInfo('Bitte wählen Sie erst zumindest einen Lehrauftrag');
|
||||
return;
|
||||
}
|
||||
|
||||
FHC_AjaxClient.ajaxCallPost(
|
||||
FHC_JS_DATA_STORAGE_OBJECT.called_path + "/orderLehrauftrag",
|
||||
selected_data,
|
||||
|
||||
Reference in New Issue
Block a user