2015-04-13 14:52:03 +09:00
|
|
|
Template.postActions.helpers({
|
2014-07-14 10:12:02 +09:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2015-04-13 14:52:03 +09:00
|
|
|
Template.postActions.events({
|
2015-05-01 18:22:00 +02:00
|
|
|
'click .toggle-actions-link': function(e){
|
2014-07-14 10:12:02 +09:00
|
|
|
e.preventDefault();
|
2014-12-14 12:38:48 +09:00
|
|
|
var $post = $(e.target).parents('.post');
|
|
|
|
var h = $post.height();
|
|
|
|
if ($post.hasClass('show-actions')) {
|
|
|
|
$post.height('auto');
|
|
|
|
$post.removeClass('show-actions');
|
|
|
|
} else {
|
|
|
|
$post.height(h+'px');
|
|
|
|
$post.addClass('show-actions');
|
|
|
|
}
|
2014-07-14 10:12:02 +09:00
|
|
|
}
|
2015-05-01 18:22:00 +02:00
|
|
|
});
|