mirror of https://github.com/gogs/gogs.git
public/js: upgrade clipboard 1.5.9 to 2.0.4
parent
4c415aefed
commit
54067d105b
|
@ -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>
|
||||
|
|
|
@ -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
File diff suppressed because one or more lines are too long
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue