mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Fixed Bestaetigung checkbox in students VIEW to be checked if Anrechnung exists
Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
@@ -9,6 +9,9 @@ $(function(){
|
||||
// Disable Form fields if Anrechnung was already applied
|
||||
requestAnrechnung.disableFormFieldsIfAntragIsApplied();
|
||||
|
||||
// Check Bestaetigung checkbox if Anrechnung was already applied
|
||||
requestAnrechnung.markAsBestaetigtIfAntragIsApplied();
|
||||
|
||||
// Init tooltips
|
||||
requestAnrechnung.initTooltips();
|
||||
|
||||
@@ -88,6 +91,14 @@ var requestAnrechnung = {
|
||||
$("#requestAnrechnung-form :input").prop("disabled", true);
|
||||
}
|
||||
},
|
||||
markAsBestaetigtIfAntragIsApplied: function(){
|
||||
let status_kurzbz = $('#requestAnrechnung-status_kurzbz').data('status_kurzbz');
|
||||
|
||||
if (status_kurzbz != '')
|
||||
{
|
||||
$("#requestAnrechnung-form :input[name='bestaetigung']").prop('checked', true);
|
||||
}
|
||||
},
|
||||
initTooltips: function (){
|
||||
$('[data-toggle="tooltip"]').tooltip({
|
||||
delay: { "show": 200, "hide": 200 },
|
||||
|
||||
Reference in New Issue
Block a user