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

Solution of "Opening #ID from two links" create another issue...!?! #9

Closed
ManishJain-JKV opened this issue Feb 18, 2014 · 1 comment

Comments

@ManishJain-JKV
Copy link

Bug which file in "Opening #ID from two links" has the solution as below
$.featherlight.defaults.autostart = false; // maybe disable autostart
var $target = $('#targetElement'); // cache element
$('.twolinks').click(function(){ // bind function
$.featherlight($target); // open featherlight with cached element.
});

It's right but set autostart = false will create another issue.
After this all other popup will not able to open. As show in image other than 1 and 2 will not open.
screen shot 2014-02-18 at 2 20 15 pm

@noelboss
Copy link
Owner

noelboss commented Mar 1, 2014

With 0.2.2 You could have started it manually like this;

var config = $.featherlight.defaults;
if(config.autostart){
    $(config.selector, config.context).featherlight();
}

As of 0.3.0 you can also initialize manually like this:

$.featherlight(); 

And the bug has been fixed anyway :)

noelboss pushed a commit that referenced this issue Mar 1, 2014
@noelboss noelboss closed this as completed Mar 1, 2014
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

2 participants