diff options
-rw-r--r-- | ui-summary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-summary.c b/ui-summary.c index f3b3d92..03b8c6b 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
@@ -27,12 +27,12 @@ static void print_url(const char *url) | |||
27 | columns++; | 27 | columns++; |
28 | 28 | ||
29 | if (urls++ == 0) { | 29 | if (urls++ == 0) { |
30 | htmlf("<tr class='nohover'><td colspan='%d'> </td></tr>", columns); | 30 | html("<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'></script>\n"); |
31 | htmlf("<tr class='nohover'><th class='left' colspan='%d'>clone</th></tr>\n", columns); | ||
32 | html("<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'></script>"); | ||
33 | html("<script>\n"); | 31 | html("<script>\n"); |
34 | html("$(document).ready(function() { $('.copy').click(function(e) { var tmp = $('<input>'); $('body').append(tmp); tmp.val($(this).text()).select(); document.execCommand('copy'); tmp.remove(); e.preventDefault(); }); });\n"); | 32 | html("$(document).ready(function() { $('.copy').click(function(e) { var tmp = $('<input>'); $('body').append(tmp); tmp.val($(this).text()).select(); document.execCommand('copy'); tmp.remove(); e.preventDefault(); }); });\n"); |
35 | html("</script>"); | 33 | html("</script>"); |
34 | htmlf("<tr class='nohover'><td colspan='%d'> </td></tr>", columns); | ||
35 | htmlf("<tr class='nohover'><th class='left' colspan='%d'>clone</th></tr>\n", columns); | ||
36 | } | 36 | } |
37 | 37 | ||
38 | htmlf("<tr><td colspan='%d'><a class='copy' rel='vcs-git' href='", columns); | 38 | htmlf("<tr><td colspan='%d'><a class='copy' rel='vcs-git' href='", columns); |