jump to next week in javascript (rd)

This commit is contained in:
L_DA 2020-07-12 20:46:25 +00:00
parent 981a2bc72c
commit c912d97987
4 changed files with 19 additions and 6 deletions

View file

@ -145,7 +145,8 @@ class timetable {
public function get_caption($week) {
$result = "";
if ($week>0) {
$result .= '<a href="#slide-'.($week-1).'" class="arrow_link previous" title="Vorherige Woche" data-week="-1"><span class="arrow">◄</span></a>';
//$result .= '<a href="#slide-'.($week-1).'" class="arrow_link previous" title="Vorherige Woche" data-week="-1"><span class="arrow">◄</span></a>';
$result .= '<a href="javascript:M.block_timetable.scroll_week('.($week-1).');" class="arrow_link previous" title="Vorherige Woche" data-week="1"><span class="arrow">◄<</span></a>';
} else {
$result .= '<a href="#" class="previous" style="visibility:hidden" data-week="-1"></A>';
//$result .= '<a href="#" class="arrow_link previous" data-week="-1"><span class="arrow" style="display:none"></span></a>';
@ -156,7 +157,8 @@ class timetable {
$result .= "</span>";
$result .= '<span class="hide"> | </span>';
if ($week<2) {
$result .= '<a href="#slide-'.($week+1).'" class="arrow_link next" title="Nächste Woche" data-month="8" data-week="1"><span class="arrow">►</span></a>';
//$result .= '<a href="#slide-'.($week+1).'" class="arrow_link next" title="Nächste Woche" data-month="8" data-week="1"><span class="arrow">►</span></a>';
$result .= '<a href="javascript:M.block_timetable.scroll_week('.($week+1).');" class="arrow_link next" title="Nächste Woche" data-month="8" data-week="1"><span class="arrow">►</span></a>';
} else {
$result .= '';
}