Ticket #2384 (closed enhancement: invalid)
Select Added Tab
|Reported by:||smcguinness||Owned by:|
I found that opening a created tab is a bit cumbersome, however I finally accomplished it (a bit dirty though). "add" currently has the url and title of the tab, I think there should be another param which could be a boolean for whether to select the tab upon creation. That process actually seems to be what most people would want anyway when adding a new tab.
Note: This is how I did it now (like I said, probably not the best way)
var title = $(this).attr("title"); var url = $(this).attr("href"); var last_tab = $("#example > ul li").length; $("#example > ul").tabs("add", url, title).tabs("select", last_tab); return false;