Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Detecting Safari breaks on jQuery 1.9+ and $.browser has been removed as well as being depreciated since jQuery 1.3. This should be changed.
Starting at line 88 in compact_forms.js:
if ($.browser.safari) {
setTimeout(Drupal.compactForms.fixSafari, 200);
}
Change to:
if (navigator.userAgent.indexOf("Safari") > -1) {
setTimeout(Drupal.compactForms.fixSafari, 200);
}
Comments
Comment #1
hoporr CreditAttribution: hoporr commentedThis is a serious issue, as it breaks JS completely.
The above fix worked for me, in that it restored correct JS execution.
However I don't have a way to check if this works on a safari browser.
Comment #2
mkindred CreditAttribution: mkindred commentedDuplicate of https://www.drupal.org/node/2299969
Comment #3
agenciaq1 CreditAttribution: agenciaq1 commentedHI,
That works to me.
Thank you for your support.
Flavio