diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-07-17 17:04:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 17:04:14 +0200 |
commit | 3a08e81969e9deafdb4d1aa890c03d67adcc4897 (patch) | |
tree | 226b19a667517ed9a6dd276e1f9b0afa8fac289b /app | |
parent | 4910361ac4c5bcf662e99d9de407d572ce1d731e (diff) | |
parent | df45126a1475ea2051a8285d89f3693c0bc61cd3 (diff) | |
download | wallabag-3a08e81969e9deafdb4d1aa890c03d67adcc4897.tar.gz wallabag-3a08e81969e9deafdb4d1aa890c03d67adcc4897.tar.zst wallabag-3a08e81969e9deafdb4d1aa890c03d67adcc4897.zip |
Merge pull request #4058 from wallabag/feature/copy-client-info
Copy client info to clipboard
Diffstat (limited to 'app')
-rw-r--r-- | app/Resources/static/themes/_global/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Resources/static/themes/_global/index.js b/app/Resources/static/themes/_global/index.js index 9ad96fc0..315fc0ad 100644 --- a/app/Resources/static/themes/_global/index.js +++ b/app/Resources/static/themes/_global/index.js | |||
@@ -4,6 +4,8 @@ import $ from 'jquery'; | |||
4 | /* Annotations */ | 4 | /* Annotations */ |
5 | import annotator from 'annotator'; | 5 | import annotator from 'annotator'; |
6 | 6 | ||
7 | import ClipboardJS from 'clipboard'; | ||
8 | |||
7 | /* Fonts */ | 9 | /* Fonts */ |
8 | import 'material-design-icons-iconfont/dist/material-design-icons.css'; | 10 | import 'material-design-icons-iconfont/dist/material-design-icons.css'; |
9 | import 'lato-font/css/lato-font.css'; | 11 | import 'lato-font/css/lato-font.css'; |
@@ -107,4 +109,10 @@ $(document).ready(() => { | |||
107 | $('#user_emailTwoFactor').on('change', () => { | 109 | $('#user_emailTwoFactor').on('change', () => { |
108 | $('#user_googleTwoFactor').prop('checked', false); | 110 | $('#user_googleTwoFactor').prop('checked', false); |
109 | }); | 111 | }); |
112 | |||
113 | // handle copy to clipboard for developer stuff | ||
114 | const clipboard = new ClipboardJS('.btn'); | ||
115 | clipboard.on('success', (e) => { | ||
116 | e.clearSelection(); | ||
117 | }); | ||
110 | }); | 118 | }); |