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

  • URLs nach Update auf JoomGallery4 und SH404SEF /4SEF

    Elfangor93 2. Juli 2025 06:35
  • 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
  • JG3 Bilder als Artikelbild verlinkt - Welche Migrationseinstellung erhält die Dateipfade?

    MrMusic 30. Juni 2025 10:21
  • JoomGallery for Joomla 4

    MrMusic 26. Juni 2025 13:53
  • Bearbeiten von Bildern nicht möglich

    kaufi88 26. Juni 2025 11:11
  • URLS nach Migration auf JG4

    Elfangor93 25. Juni 2025 12:45
  • Inconsistent category folder paths defined in the database of your JG3 tables

    MrMusic 24. Juni 2025 15:49
  • JoomImages Module in Joomgallery 4

    Elfangor93 17. Juni 2025 09:07
  • 4SEF have native support for JoomGallery

    Elfangor93 17. Juni 2025 08:36

Tags

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