mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-13 18:19:27 +00:00
Added: Automatic Scrolling when Approving/Rejecting multiple Anrechnungen
Also added Scrolling for Recommending/Not Recommending multiple Anrechnungen Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
@@ -246,7 +246,12 @@ $(function(){
|
||||
if (genehmigung_panel.is(":hidden"))
|
||||
{
|
||||
// Show begruendung panel if is hidden
|
||||
genehmigung_panel.slideDown('slow');
|
||||
genehmigung_panel.slideDown(400, function() {
|
||||
$('html, body').animate({
|
||||
scrollTop: genehmigung_panel.offset().top // Move genehmigung panel bottom up to be visible within window screen
|
||||
}, 400);
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
@@ -318,7 +323,12 @@ $(function(){
|
||||
if (begruendung_panel.is(":hidden"))
|
||||
{
|
||||
// Show begruendung panel if is hidden
|
||||
begruendung_panel.slideDown('slow');
|
||||
begruendung_panel.slideDown(400, function() {
|
||||
$('html, body').animate({
|
||||
scrollTop: begruendung_panel.offset().top // Move begruendung panel bottom up to be visible within window screen
|
||||
}, 400);
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -227,7 +227,11 @@ $(function(){
|
||||
if (empfehlung_panel.is(":hidden"))
|
||||
{
|
||||
// Show begruendung panel if is hidden
|
||||
empfehlung_panel.slideDown('slow');
|
||||
empfehlung_panel.slideDown(400, function() {
|
||||
$('html, body').animate({
|
||||
scrollTop: empfehlung_panel.offset().top // Move empfehlung panel bottom up to be visible within window screen
|
||||
}, 400);
|
||||
});
|
||||
return;
|
||||
}
|
||||
});
|
||||
@@ -300,7 +304,11 @@ $(function(){
|
||||
if (begruendung_panel.is(":hidden"))
|
||||
{
|
||||
// Show begruendung panel if is hidden
|
||||
begruendung_panel.slideDown('slow');
|
||||
begruendung_panel.slideDown(400, function() {
|
||||
$('html, body').animate({
|
||||
scrollTop: begruendung_panel.offset().top // Move genehmigung panel bottom up to be visible within window screen
|
||||
}, 400);
|
||||
});
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user