mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00

- changed the layout CSS for post modules - changed order of modules - changed markup of modules
18 lines
No EOL
455 B
JavaScript
18 lines
No EOL
455 B
JavaScript
Template[getTemplate('postActions')].helpers({
|
|
|
|
});
|
|
|
|
Template[getTemplate('postActions')].events({
|
|
'click .toggle-actions-link': function(e, instance){
|
|
e.preventDefault();
|
|
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');
|
|
}
|
|
}
|
|
}); |