Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes tooltip('toggle') #6176

Closed
wants to merge 2 commits into from
Closed

fixes tooltip('toggle') #6176

wants to merge 2 commits into from

Conversation

Yohn
Copy link
Contributor

@Yohn Yohn commented Dec 9, 2012

this is part 1 of a previous pull request - #5768 that fixes the tooltip('toggle') functionality in issue #5753

Heres some fiddles to show an example
Current Bootstrap package - http://jsfiddle.net/SqFbx/
Updated - http://jsfiddle.net/SqFbx/1/

Thanks to @demike for helping fix this.

Yohn added 2 commits December 9, 2012 03:48
tooltip('toggle') is broken in current bootstrap download -- http://jsfiddle.net/SqFbx/
and with the changes it works -- http://jsfiddle.net/SqFbx/1/

thanks to @demike for helping fix this issue.

This is also part 1 of a pull request that was closed - twbs#5768
@Merg1255
Copy link

Merg1255 commented Dec 9, 2012

nice

@martynsmith
Copy link

I just stumbled in to this bug.

Thankfully @Yohn has already written a nice fix and text 👍 pity it's not merged yet :-(

@@ -236,8 +236,8 @@
}

, toggle: function (e) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
self[self.tip().hasClass('in') ? 'hide' : 'show']()
var self = (e) ? $(e.currentTarget)[this.type](this._options).data(this.type) : this
Copy link
Member

Choose a reason for hiding this comment

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

change this line to:

var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this

@fat
Copy link
Member

fat commented Dec 20, 2012

could you reopen this against the wip branch -this looks really good, would be great to give you credit for it :)

@Merg1255
Copy link

thx for updating the topic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants