Skip to content

gh-68 Fixed bug with id creation based on time. - #69

Closed
No3x wants to merge 2 commits into
TheWebShop:masterfrom
No3x:id-fix
Closed

No3x wants to merge 2 commits into
TheWebShop:masterfrom
No3x:id-fix

Conversation

@No3x

@No3x No3x commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

event.timeStamp contains fractions of a second. A dot in the html id attribute caused problems. => Replaced with guid function.

Comment thread js/plugins/tabs.html Outdated


var id = 'bs_tab' + e.timeStamp;
var id = 'bs_tab' + guid();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to add an underscore after 'bs_tab' for the id. So, var id = 'bs_tab_' + guid();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just replaced e.timeStamp and did not think about this. Thank you.

Added underscore as suggested by @emRae.
Sinetheta pushed a commit that referenced this pull request Oct 18, 2026
event.timeStamp has fractional milliseconds, so ids like
bs_tab1234.567 were produced and the dot broke the tab selector.
Use a short random id instead.

Applied from #69. Fixes #68.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Sinetheta

Copy link
Copy Markdown
Member

Thanks @No3x, and sorry this sat for so long! Your fix was applied in #84 (commit credited to you) and shipped in 3.4.6. Closing this one since the change is now on master.

@Sinetheta Sinetheta closed this Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants