Skip to content

Commit 235851d

Browse files
committed
Fix copying of terms.
1 parent 11f08a1 commit 235851d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function setUpCopyButtons() {
8484
ZeroClipboard.setDefaults({ moviePath: "/zeroclipboard.swf", forceHandCursor: true, hoverClass: 'hover' });
8585
$('.uri.copy').each(function () {
8686
var $uri = $(this);
87-
$uri.before(createCopyButton($uri.text()), ' ');
87+
$uri.before(createCopyButton($uri.text() + $uri.next('.term').text()), ' ');
8888
}).removeClass('copy');
8989
$('pre.source.copy').each(function () {
9090
$('.footer').prepend($('<p>').append(createCopyButton($(this).text().trim(),

templates/record-lookup-uri.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h2 class="expansion">
2-
<span class="uri copy"><?php e($uri); ?></span><?php e(@$reference); ?>
2+
<span class="uri copy"><?php e($uri); ?></span><span class="term"><?php e(@$reference); ?></span>
33
<a class="namespace-link no-caption" href="<?php e($uri . $reference); ?>" rel="nofollow"><img src="images/link.png" alt="link to <?php echo $reference ? 'term' : 'namespace'; ?> URI" title="go to the <?php echo $reference ? 'term' : 'namespace'; ?> URI" /></a>
44
<?php if (@$show_vote_links) { ?>
55
<span class="toolbox">

0 commit comments

Comments
 (0)