From 7f44143e08ee4ed5d9c89efe5e0592d2c5b39dd8 Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Sun, 29 Jan 2023 17:04:48 +0000
Subject: [PATCH] Titel entfernen bei spielender Abspielliste berichtigt

---
 www/js/app.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/www/js/app.js b/www/js/app.js
index a22f03f..bb65b97 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -727,6 +727,11 @@
     self.http_delete('api/alist/' + plname + '/' + index,'', function(responseText) {
       // DELETE	http://localhost:9090/mz/api/alist/liste1/0
       //self.meldung_mit_timeout(responseText, 1500);
+      if(self.playingList === plname) {
+        if(self.playingIndex > index) {
+          --self.playingIndex;
+        }
+      }
       self.titel_liste();
     });
     

--
Gitblit v1.9.3