parts not used

v1.18.x
barisusakli 9 years ago
parent b29715fa37
commit 0d4949ea26

@ -51,7 +51,6 @@ define('share', function() {
} }
function getPostUrl(clickedElement) { function getPostUrl(clickedElement) {
var parts = window.location.pathname.split('/');
var pid = parseInt(clickedElement.parents('[data-pid]').attr('data-pid'), 10); var pid = parseInt(clickedElement.parents('[data-pid]').attr('data-pid'), 10);
return '/post' + (pid ? '/' + (pid) : ''); return '/post' + (pid ? '/' + (pid) : '');
} }

Loading…
Cancel
Save