1. Forum
    1. Themen Übersicht
  2. Hilfe
  3. Forenregeln
  4. Mitglieder
    1. Team
    2. Mitgliedersuche
  5. Webseite
  6. Archiv
  • Anmelden
  • Registrieren
  • Suche

Neuigkeiten

Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche

Neuigkeiten

Letzte Beiträge
  1. JoomGallery 3.x JUX für Joomla! 3
  2. Alle Beiträge zur JoomGallery 3.x JUX
  3. Frontend - JG 3.x

Javascript error with Squeezebox in detail view

  • whistler
  • 29. April 2021 15:33
  • Erledigt
  • whistler
    Benutzer
    Reaktionen
    4
    • 29. April 2021 15:33
    • #1

    I am having some issues with Javascript which seems to only affect the Detail page.

    Uncaught ReferenceError: SqueezeBox is not defined

    Seems the error is caused by an attempt to initialize the squeezebox

    Code
    function joom_hover() {
          jg_photo_hover = (jg_photo_hover==1) ? 0 : 1;
        }document.onkeydown = joom_cursorchange;
            jQuery(function($) {
                SqueezeBox.initialize({});
                initSqueezeBox();
                $(document).on('subform-row-add', initSqueezeBox);
    
                function initSqueezeBox(event, container)
                {
                    SqueezeBox.assign($(container || document).find('a.modal').get(), {
                        parse: 'rel'
                    });
                }
            });
    
            window.jModalClose = function () {
                SqueezeBox.close();
            };
    Alles anzeigen

    Now, I am unbelievably bad in Javascript, so I assume he is missing some file, but there should be nothing on that page which should require Squeezebox to be used. Unfortunately, I have no idea what to do to deactivate this. Preventing to load the detail.js file from loading stops the error though it does prevent some other functionality on the detail page.

    Any idea how to resolve this? This breaks the js on the page.

    • Zitieren
  • whistler
    Benutzer
    Reaktionen
    4
    • 30. April 2021 00:00
    • #2

    Ok, so this is related to mootools. Basically anytime you use behavior.modal, you are not doing anyone a favor.

    Code
    JHTML::_('behavior.modal');
    • Zitieren

Letzte Beiträge

  • Anpassung für Anzeige der Anzahl von Bildern im Frontend

    MrMusic 18. Juli 2025 13:36
  • Can you do different views / layouts for different catregories?

    MrMusic 16. Juli 2025 17:04
  • JoomGallery 4.1.1 and Joomla! 6.dev

    MrMusic 16. Juli 2025 16:59
  • Is there a way to hide the "Description:" text for Category view?

    MrMusic 13. Juli 2025 18:06
  • JoomGallery 4.1.0 - Fehler nach dem Update

    reni 9. Juli 2025 21:32
  • URLs nach Update auf JoomGallery4 und SH404SEF /4SEF

    Bjoern 9. Juli 2025 18:14
  • JoomGallery für Joomla 4

    soenke 9. Juli 2025 18:11
  • Can you change the parent category of a category?

    GJSchaller 8. Juli 2025 00:32
  • Looking to replicate JG3 Gallery / Category View under JG4

    GJSchaller 1. Juli 2025 20:01
  • What can you do with Tags?

    FriendlyUser 30. Juni 2025 22:40

Tags

  • Javascript
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™