Skip to content

Safari problems #158

@flaushi

Description

@flaushi

Hi.
I tried the demo page https://jquery.malsup.com/block/ but it neither works in a current Safari nor Chrome.

My personal installation however does work with Chrome, but still Safari makes problems.

This code does show a spinner whenever a link or submit button is pressed. When the target page is loaded, the ui disappears. It works fine in Chrome. But Safari does not show it.

$(document).on('click',
    'a[href*="/"][target!="_blank"]:not(.suppress-block-ui), button[type=submit]:not(.suppress-block-ui)',
    function (e) {
       // e.preventDefault() // **
        if(! e.ctrlKey && !e.metaKey )
            myBlockUi();
    });

If I try to prevent the navigation (**), the ui does appear on Safari as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions