Bug Tracker

Modify

Ticket #2384 (closed enhancement: invalid)

Opened 5 years ago

Last modified 4 years ago

Select Added Tab

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

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;

});

Change History

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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 .

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.