Skip to content

Commit

Permalink
don't scroll page on opening ViewLikes
Browse files Browse the repository at this point in the history
fix for #1095
  • Loading branch information
githubertus authored May 26, 2017
1 parent ce315fe commit 1db0677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/OssnLikes/plugins/default/likes/post/likes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$total = 'people';
}
$link['onclick'] = "Ossn.ViewLikes({$object});";
$link['href'] = '#';
$link['href'] = 'javascript:void(0);';
$link['text'] = ossn_print("ossn:like:{$total}", array($count));
$link = ossn_plugin_view('output/url', $link);
echo ossn_print("ossn:like:you:and:this", array($link));
Expand All @@ -44,7 +44,7 @@
$total = 'people';
}
$link['onclick'] = "Ossn.ViewLikes({$object});";
$link['href'] = '#';
$link['href'] = 'javascript:void(0);';
$link['text'] = ossn_print("ossn:like:{$total}", array($count));
$link = ossn_plugin_view('output/url', $link);
echo ossn_print("ossn:like:this", array($link));
Expand Down

0 comments on commit 1db0677

Please sign in to comment.