Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6745 closed bug (invalid)

jQuery UI Tabs Plugin Update of _tabId regex for replace

Reported by: ZlatanO Owned by:
Priority: Milestone: 1.4.3
Component: manipulation Version: 1.4.2
Keywords: tabs, href, title, id, _tabId, jquery UI, regex, .. Cc:
Blocked by: Blocking:

Description

Hi.

I'm using jquery and all of the UI components, and I found out if I want to label a tab with for example: "Hi (All Of You)", it will create an id (in href attribute of link generated): "hi-(all-of-you)".

It means that in the regex (this one: _tabId: function(a) {

return a.title && a.title.replace(/\s/g, '_').replace(/[A-Za-z0-9\-_:\.]/g, )

this.options.idPrefix + (++tabId);

},

)

has no replace regex for these two signs: ( and ).

Also, all the contents from other tabs are displayed in first child of the whole plugin.

I'm using this tabs plugin, but I don't know regex at all and I couldn't get it to work, so I think you could upgrade it in the next version.

Your upgrade will help me and all others who use it.

Greetings from Bosnia and Herzegovina by Zlatan.

Attachments (1)

jquery.ui.tabs.js (19.3 KB) - added by ZlatanO 10 years ago.
jQuery UI Tabs file

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by ZlatanO

Attachment: jquery.ui.tabs.js added

jQuery UI Tabs file

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

Please report jQuery UI bugs in the UI bug tracker: http://dev.jqueryui.com

Note: See TracTickets for help on using tickets.