mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
Merge branch 'feature-5707/DigitalerLehrauftrag_PDF-Download_Akzeptierte_Lehrauftraege' into review/DigitaleLehrauftraege
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
// Global vars
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
const APP_ROOT = FHC_JS_DATA_STORAGE_OBJECT.app_root;
|
||||
|
||||
const COLOR_LIGHTGREY = "#f5f5f5";
|
||||
|
||||
@@ -431,7 +432,6 @@ storniert_tooltip = function(cell){
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
||||
// Pruefen ob Promise unterstuetzt wird
|
||||
// Tabulator funktioniert nicht mit IE
|
||||
var canPromise = !! window.Promise;
|
||||
@@ -508,6 +508,29 @@ $(function() {
|
||||
$(this).addClass('focus').addClass('active');
|
||||
});
|
||||
|
||||
// Performs download PDF accepted Lehrauftraege
|
||||
$("#ul-download-pdf").on('click', 'li', function(){
|
||||
var uid = $("#uid").val();
|
||||
var studiensemester = $('#studiensemester').val();
|
||||
|
||||
if ($(this).attr('value') != null && $(this).attr('value') != '')
|
||||
{
|
||||
var selected = $(this).attr('value');
|
||||
|
||||
if (selected == 'etw' || selected == 'lehrgang')
|
||||
{
|
||||
window.open(APP_ROOT + 'cis/private/pdfExport.php' +
|
||||
'?xml=lehrauftrag_annehmen.xml.php' +
|
||||
'&xsl=Lehrauftrag' +
|
||||
'&xsl_oe_kurzbz=' + selected +
|
||||
'&stg_kz=' +
|
||||
'&uid=' + uid +
|
||||
'&ss=' + studiensemester, '_parent'
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Redraw table stornierte lehrauftraege on button click
|
||||
$('#collapseCancelledLehrauftraege').on('shown.bs.collapse', function () {
|
||||
$('[tableuniqueid = cancelledLehrauftrag] #tableWidgetTabulator').tabulator('redraw', true);
|
||||
@@ -566,7 +589,7 @@ $(function() {
|
||||
// Print error message
|
||||
FHC_DialogLib.alertWarning(data.retval);
|
||||
}
|
||||
|
||||
|
||||
if (!data.error && data.retval != null)
|
||||
{
|
||||
// Update status 'Erteilt'
|
||||
|
||||
Reference in New Issue
Block a user