Verified Commit 7869a354 authored by Kevin Morris's avatar Kevin Morris
Browse files

Merge branch 'master' into live

parents b4139745 e2a17fef
Pipeline #16395 passed with stages
in 4 minutes and 31 seconds
......@@ -6,7 +6,7 @@ from typing import Any
# Publicly visible version of aurweb. This is used to display
# aurweb versioning in the footer and must be maintained.
# Todo: Make this dynamic/automated.
AURWEB_VERSION = "v6.0.21"
AURWEB_VERSION = "v6.0.22"
_parser = None
......
......@@ -8,7 +8,7 @@
#
[tool.poetry]
name = "aurweb"
version = "v6.0.21"
version = "v6.0.22"
license = "GPL-2.0-only"
description = "Source code for the Arch User Repository's website"
homepage = "https://aur.archlinux.org"
......
......@@ -160,4 +160,3 @@
</table>
<script type="text/javascript" src="/static/js/copy.js"></script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelector('.copy').addEventListener('click', function(e) {
e.preventDefault();
navigator.clipboard.writeText(event.target.text);
});
let elements = document.querySelectorAll('.copy');
elements.forEach(function(el) {
el.addEventListener('click', function(e) {
e.preventDefault();
navigator.clipboard.writeText(e.target.text);
});
});
});
......@@ -309,9 +309,9 @@ endif;
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelector('.copy').addEventListener('click', function(e) {
document.querySelectorAll('.copy').addEventListener('click', function(e) {
e.preventDefault();
navigator.clipboard.writeText(event.target.text);
navigator.clipboard.writeText(e.target.text);
});
});
</script>
......@@ -138,9 +138,9 @@ endif;
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelector('.copy').addEventListener('click', function(e) {
document.querySelectorAll('.copy').addEventListener('click', function(e) {
e.preventDefault();
navigator.clipboard.writeText(event.target.text);
navigator.clipboard.writeText(e.target.text);
});
});
</script>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment