public/js: upgrade clipboard 1.5.9 to 2.0.4

pull/5913/head
Unknwon 2020-01-31 21:21:30 +08:00
parent 4c415aefed
commit 54067d105b
No known key found for this signature in database
GPG Key ID: AD9191DE07E9EAFA
5 changed files with 10 additions and 10 deletions

View File

@ -31,7 +31,7 @@
<td><a href="/js/gogs.js">gogs.js</a></td>
</tr>
<tr>
<td><a href="/js/libs/clipboard-1.5.9.min.js">clipboard-1.5.9.min.js</a></td>
<td><a href="/js/libs/clipboard-2.0.4.min.js">clipboard-2.0.4.min.js</a></td>
<td><a href="http://www.freebsd.org/copyright/freebsd-license.html">Expat</a></td>
<td><a href="https://github.com/zenorocha/clipboard.js/archive/v1.5.9.tar.gz">clipboard-1.5.9.tar.gz</a></td>
</tr>

View File

@ -1258,7 +1258,7 @@ $(document).ready(function () {
}
// Clipboard JS
var clipboard = new Clipboard('.clipboard');
var clipboard = new ClipboardJS('.clipboard');
clipboard.on('success', function (e) {
e.clearSelection();

File diff suppressed because one or more lines are too long

7
public/js/libs/clipboard-2.0.4.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,7 @@
<script src="{{AppSubURL}}/plugins/autosize-4.0.2/autosize.min.js"></script>
{{end}}
<script src="{{AppSubURL}}/js/libs/emojify-1.1.0.min.js"></script>
<script src="{{AppSubURL}}/js/libs/clipboard-1.5.9.min.js"></script>
<script src="{{AppSubURL}}/js/libs/clipboard-2.0.4.min.js"></script>
{{template "inject/footer" .}}
</html>