Fix: Auf/Ab-Buttons – Tausch-Logik (ziel.after/li war No-Op) → DOM + POST korrekte Reihenfolge
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
? li.nextElementSibling
|
? li.nextElementSibling
|
||||||
: li.previousElementSibling;
|
: li.previousElementSibling;
|
||||||
if (!ziel || !ziel.matches('li[data-id]')) { return; }
|
if (!ziel || !ziel.matches('li[data-id]')) { return; }
|
||||||
if (knopf.getAttribute('data-dir') === '1') { li.after(ziel); } else { li.before(ziel); }
|
if (knopf.getAttribute('data-dir') === '1') { ziel.after(li); } else { ziel.before(li); }
|
||||||
speichern();
|
speichern();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user