Created
November 15, 2017 13:29
-
-
Save domagude/7780291c48f13f654ec267a6cbce2782 to your computer and use it in GitHub Desktop.
This file contains 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
$(document).on('turbolinks:load', function() { | |
// when conversation heading is clicked, toggle conversation | |
$('body').on('click', | |
'.conversation-heading, .conversation-heading-full', | |
function(e) { | |
e.preventDefault(); | |
var panel = $(this).parent(); | |
var panel_body = panel.find('.panel-body'); | |
var messages_list = panel.find('.messages-list'); | |
panel_body.toggle(100, function() { | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment