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

Clone at wrong position #2

Open
brendo opened this issue Nov 11, 2009 · 0 comments
Open

Clone at wrong position #2

brendo opened this issue Nov 11, 2009 · 0 comments

Comments

@brendo
Copy link

brendo commented Nov 11, 2009

I came across an issue when using clone that my original inline element was being shown when boxy was executed. To fix this:

http://github.com/jaz303/boxy/blob/master/src/javascripts/jquery.boxy.js#L367

should be moved above the previous line so that only the cloned element gets the boxy-content class. ie:

    if (this.options.clone) newContent = newContent.clone(true);
    newContent = jQuery(newContent).css({display: 'block'}).addClass('boxy-content');
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

1 participant