Skip to main content

Bug Tracker

Side navigation

#2384 closed enhancement (invalid)

Opened February 21, 2008 11:35PM UTC

Closed October 12, 2009 11:52PM UTC

Select Added Tab

Reported by: smcguinness Owned by:
Priority: minor Milestone: 1.2.4
Component: plugin Version: 1.2.3
Keywords: Tabs Cc:
Blocked by: Blocking:
Description

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)

$("a.details").click(function() {

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;

});

Attachments (0)
Change History (1)

Changed October 12, 2009 11:52PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .