Created
April 25, 2012 22:33
-
-
Save rickharris/2494017 to your computer and use it in GitHub Desktop.
mediaelement.js & Olark - quick event bubbling fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a waste of a function call, but it operates as a pseudo-olark-ready | |
# callback, which is just what we need to attach an event to it so that the | |
# video player loses focus before someone starts typing in the Olark box. | |
olark 'api.visitor.getDetails', (details) -> | |
olarkTextarea = $('#habla_wcsend_input') | |
olarkTextarea.focus -> | |
$(document).click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment