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
Limit propagation of new part name/link for #2917 #2918
Conversation
Between creation of new page part and save of page with new part, the other editor tabs would have the link to the new page part added to their content area. This fix ensures the link is only added to the page tabs.
Hmm, this seems like it's supposed to be passed in. Can we limit the scope of the function to just apply to the one it's supposed to? I don't want to break this for other uses accidentally |
Do you mean like this: page_options.tabs.find("ul#page_parts").append(
"<li><a href='#page_part_new_"+$('#new_page_part_index').val()+"'>"+part_title+"</a></li>"
); |
Yup, exactly. |
OK... but as I'm targeting an id the effect should be identical. |
Until you have two of these on the same page 😄 |
|
Yeah, probably it should be a class
|
I'd like to see an example of a container/page with two sets of tabs for content sections. |
Travis fail....whyowhyowhy. |
Limit propagation of new part name/link for #2917
Between creation of new page part and save of page with new part, the
other editor tabs would have the link to the new page part added to
their content area.
This fix ensures the link is only added to the page tabs.