I am creating a web application and I want to use the Tabs widget to replicate the tab functionality you find in most web browsers. I want the user to be able: to move (sort) the tabs around, create tabs dynamically, close tabs dynamically.
I am having a problem deleting tabs that have been moved around.
Lets say there are three tabs named:
one, two and three.
If I move "one" so the tabs are like:
two, three and one
When I delete "one", which has an index of 2, tab "three" is deleted. So the tabs are now:
two, and one.
I have tested many different scenarios and it appears to me when I remove a tab, JQueryUI removes the wrong tab that initially had the index value, and not the tab that currently has the index value.