added post links

This commit is contained in:
Baris Usakli
2013-09-19 16:24:30 -04:00
parent 29c17fd32e
commit d84d096e7e
2 changed files with 13 additions and 0 deletions

View File

@@ -281,6 +281,11 @@
}
});
$('#post-container').on('click', '.link', function() {
var pid = $(this).parents('li').attr('data-pid');
$('#post_' + pid + '_link').val(window.location.href + "#" + pid).fadeToggle().select();
});
$('#post-container').delegate('.edit', 'click', function(e) {
var pid = $(this).parents('li').attr('data-pid'),
main = $(this).parents('.main-post');