Преглед на файлове

Fix PHP syntax errors in JellyStat metadata popup integration

- Fixed JavaScript string escaping in metadata popup elements for movies and TV shows
- Fixed apostrophe in comment that was breaking PHP string parsing
- All PHP syntax errors resolved - file now parses correctly
- JellyStat metadata popups should now work with Organizr's built-in system
mgomon преди 8 месеца
родител
ревизия
4ce2c3710b
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      api/homepage/jellystat.php

+ 5 - 5
api/homepage/jellystat.php

@@ -680,8 +680,8 @@ trait JellyStatHomepageItem
                     html += "</div>";
                     
                     // Add metadata popup elements (Organizr style)
-                    html += "<div id='" + movie.id + "-metadata-div' class='white-popup mfp-with-anim mfp-hide'>";
-                    html += "<div class='col-md-8 col-md-offset-2 " + movie.id + "-metadata-info'></div>";
+                    html += "<div id=\"" + movie.id + "-metadata-div\" class=\"white-popup mfp-with-anim mfp-hide\">";
+                    html += "<div class=\"col-md-8 col-md-offset-2 " + movie.id + "-metadata-info\"></div>";
                     html += "</div>";
                     
                     html += "</div>";
@@ -745,8 +745,8 @@ trait JellyStatHomepageItem
                     html += "</div>";
                     
                     // Add metadata popup elements (Organizr style) 
-                    html += "<div id='" + show.id + "-metadata-div' class='white-popup mfp-with-anim mfp-hide'>";
-                    html += "<div class='col-md-8 col-md-offset-2 " + show.id + "-metadata-info'></div>";
+                    html += "<div id=\"" + show.id + "-metadata-div\" class=\"white-popup mfp-with-anim mfp-hide\">";
+                    html += "<div class=\"col-md-8 col-md-offset-2 " + show.id + "-metadata-info\"></div>";
                     html += "</div>";
                     
                     html += "</div>";
@@ -831,7 +831,7 @@ trait JellyStatHomepageItem
             }
         });
         
-        // JellyStat metadata popups are handled by Organizr's built-in metadata-get click handler
+        // JellyStat metadata popups are handled by Organizr\'s built-in metadata-get click handler
         // The handler will call api/v2/homepage/jellystat/metadata with the data-key value
         
         </script>