Projekt

Allgemein

Profil

Fehler #1207

Error Intro files "zurück"

Von Birte Reich vor etwa 1 Monat hinzugefügt. Vor 24 Tagen aktualisiert.

Status:
Neu
Priorität:
Normal
Zugewiesen an:
-
Beginn:
21.05.2025
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:

Beschreibung

The box at the end of the page "zurück" should lead to the last step before. Right now it kind of destroys the page because after using it you cannot go to the end of the page anymore.
https://moodle.math.uni-paderborn.de/course/view.php?id=15&section=0
You can see the problem if you click on "Zurück" and try to find the end of the page (you will recognize it if there is the "Zusammenfassung" button).

Detailed explanation:
First time loading the page the "nächster Schritt" (next) worked well. If you click on "zurück" it is still working and goes one page back (e.g. from 12 to 11 so Aufgabe 12 will disappear). But after that you can never go to page 12 anymore (just with reloading the page) even though it would tell you Seite 12/12 (page 12), it is not showing the content of it.

The error is everywhere in the intros so it should be one of the general Intro files (input -> studifinder).

If that doesn't work, we can try it together.
For testing you need to compile the Intros: python3 tex2x.py studifinder and upload them in moodle.
Use one of the intern courses -> more -> course reuse -> restore -> upload one of the zip output files you created with compiling.


Dateien

modstart.html (2,13 KB) modstart.html Avishan Sharafi, 03.06.2025 09:55
logic.js (2,51 KB) logic.js Avishan Sharafi, 03.06.2025 09:55

Historie

#1

Von Birte Reich vor etwa 1 Monat aktualisiert

You just need to find out where we integrate the "Abschnitt zurück" button (which file, where to find it, which line) so that I can outcomment it and we won't use it anymore as we don't really need the going back part.

#2

Von Avishan Sharafi vor 24 Tagen aktualisiert

Problem:
flag /array like current_xcontent is not reset properly
The problem is how the current_xcontent position is stored and updated.

Specifically, the last page content is not appended again after going back, because:

current_xcontent is decremented (-1) on "zurück" ,
But when we go forward again, our logic thinks it has already shown everything up to page 12, so it doesn't append it again.

By this hypothesis that Birte confirms:
If "Zurück" is only used for navigation in the intro modules (and not part of quizzes or other functional workflows), removing it is safe .

Solution
I have rewritten * modstart.html* to remove the " Zurück " button entirely and make it consistent with the updated logic.js file

Everything else remains intact to ensure the system works without breaking.

I've removed the " Zurück " (#button_prev) logic from the JavaScript file to avoid inconsistencies and simplify the code to track and trace.
therefore
  • No accidental re-navigation bugs.
  • Navigation proceeds only forward using #button_next.

Auch abrufbar als: Atom PDF