Skip to content

Ticket #4578: adding tab moves targeted panel #251

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

Closed
wants to merge 5 commits into from

Conversation

davidmurdoch
Copy link

If the panel to be added doesn't have an index value append the tab to be added to the list's parent. Otherwise insert the tab after the last existing panel.

Fixes ticket http://bugs.jqueryui.com/ticket/4578

@@ -808,7 +808,11 @@ if ( $.uiBackCompat !== false ) {

if ( index >= this.lis.length ) {
li.appendTo( this.list );
panel.appendTo( this.list[ 0 ].parentNode );
if( index > 0 ){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the spacing here is wrong, it needs to be if ( index > 0 ) {

@scottgonzalez
Copy link
Member

This doesn't look right, you're appending a panel after an anchor?

@scottgonzalez
Copy link
Member

This also doesn't solve the problem as suggested. If the panel already exists, it shouldn't be moved. See http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/87bbd62c9f03f156

@davidmurdoch davidmurdoch reopened this May 11, 2011
@davidmurdoch
Copy link
Author

I'm not sure while my additional commits aren't showing in this pull request. Should I close and just open a new pull request??

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

Successfully merging this pull request may close these issues.

2 participants