Response title
This is preview!
TabView.Object = $(TabView.DomSelector).tabs()// Make tabs removable..find(".ui-tabs-nav").sortable({ axis: "x" });
$(TabView.DomSelector + " span.ui-icon-close").live("click", TabView.Close);
};
$(document).ready(function ()
{
TabView.OnLoad();
});
For me the workaround, was to change the TabView.Close function like this:TabView.Close = function (e)
{
var parent = $(e.target).parent();
var href = $("a", parent).attr("href");
// jQuery remove method does not work, when tabs are also sortable.
// TabView.Object.tabs("remove", href);
// Workaround:
$(parent).remove();
$(href).remove();
}This might now work for every scenario, so evaluate this workaround accordingly.
© 2013 jQuery Foundation
Sponsored by and others.