New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS callback for popover closing #625

Open
seth100 opened this Issue Jun 26, 2014 · 3 comments

Comments

Projects
None yet
5 participants
@seth100
Copy link

seth100 commented Jun 26, 2014

No description provided.

@Tris10

This comment has been minimized.

Copy link

Tris10 commented Jul 11, 2014

+1, but this will also work

$("#id_of_popup").removeClass('active');

@evertonbaima

This comment has been minimized.

Copy link

evertonbaima commented Jul 11, 2014

$('#trigger').on('touchend', function() {
    $('#popover').removeClass('visible');
    $('div.backdrop').remove();
});

It's not perfect, but it's the best I could. =/

@AlexisCaffa

This comment has been minimized.

Copy link

AlexisCaffa commented Oct 14, 2014

function () {
     var popovers = $('.popover');
     $(popovers).removeClass('visible');
     $(popovers).removeClass('active');
     $(popovers).hide();
     $("div.backdrop").remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment