Skip to content
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

Remove "data-clickover-open" when calling 'hide' #36

Open
vuk-nikolic opened this issue Apr 26, 2013 · 3 comments
Open

Remove "data-clickover-open" when calling 'hide' #36

vuk-nikolic opened this issue Apr 26, 2013 · 3 comments

Comments

@vuk-nikolic
Copy link

Hi,

great plugin, it helped me a lot.

Here is how I use it, I have bunch of popups in my page. Each popup has a form in it. Those forms are jquery ajax forms, and when I get a response from server I call clickover('hide') to hide that popup. But when I click on a button to open that popup again it is not shown.
I found out when I call clickover('hide') and remove attribute 'data-clickover-open' everything is ok.
So maybe you should just add a remove of 'data-clickover-open' when calling hide.

I might be using it in a incorrect way, but I wanted to inform you :)

Thanks again, awesome plugin just what I've needed 👍

@jplaza
Copy link

jplaza commented May 10, 2013

Exact same issue here. Using Bootstrap 2.3.1 and jQuery 1.8.3
@vuk-nikolic thanks a lot for the tip on how to make it work. I'm also using it to show small forms to users.

@piperone
Copy link

Same thing here with Bootstrap 2.3.1 and JQuery 1.8.3.

I don't know if OP had this problem occur, but I use the onShown-method to do some stuff. After programatically closing the clickover, using

$(element).clickover('hide').removeAttr('data-clickover-open');

and then clicking anywhere on the page, the onShown function is called and the clickover once again is displayed. It's confusing the hell out of me and I'm currently stumped as to what is causing this.

I'd appreciate some feedback on this.

Thanks again for an awesome plugin!

@jaywengrow
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants