Skip to content

Commit e0dc89f

Browse files
Clicking copy creates a # in the URL and moves the page up, it also shouldn't do so
1 parent f55fdac commit e0dc89f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/render-facade.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
function initActionsButtons(v) {
88
if($('a.visualizer-action[data-visualizer-type=copy]').length > 0) {
9+
$('a.visualizer-action[data-visualizer-type=copy]').on('click', function(e) {
10+
e.preventDefault();
11+
});
912
var clipboard = new Clipboard('a.visualizer-action[data-visualizer-type=copy]'); // jshint ignore:line
1013
clipboard.on('success', function(e) {
1114
window.alert(v.i10n['copied']);

0 commit comments

Comments
 (0)