Last active
August 29, 2015 13:57
-
-
Save SoftCreatR/9754783 to your computer and use it in GitHub Desktop.
Lazy inline post editing
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
| $(".messageContent").dblclick(function() { | |
| var $btn = $(".messageOptions a.button.jsMessageEditButton", this); | |
| if($btn.length) { | |
| $btn.dblclick(); | |
| } | |
| }); |
dtdesign
commented
Mar 27, 2014
Author
Ty. I just had to replace click by dbclick because a single click just opens the dropdown :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment