Ticket #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: | |
| Blocking: | Blocked by: |
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
Change History
Changed 3 years ago by ZlatanO
-
attachment
jquery.ui.tabs.js
added
comment:1 Changed 3 years ago by dmethvin
- Status changed from new to closed
- Resolution set to invalid
Please report jQuery UI bugs in 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.

jQuery UI Tabs file