Skip to content

Instantly share code, notes, and snippets.

@domagude
Created November 15, 2017 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/7780291c48f13f654ec267a6cbce2782 to your computer and use it in GitHub Desktop.
Save domagude/7780291c48f13f654ec267a6cbce2782 to your computer and use it in GitHub Desktop.
$(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