diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-07-09 13:22:50 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-07-09 13:46:02 +0200 |
commit | 66fa0c26ab74467645e2cc63a4f48ef82e3f5748 (patch) | |
tree | 04d918dbb95181f6a26c1e32cd2086b678c2cc67 /app | |
parent | ff8fe22f2e00f91c08efb161e4de52bc4b401880 (diff) | |
download | wallabag-66fa0c26ab74467645e2cc63a4f48ef82e3f5748.tar.gz wallabag-66fa0c26ab74467645e2cc63a4f48ef82e3f5748.tar.zst wallabag-66fa0c26ab74467645e2cc63a4f48ef82e3f5748.zip |
Copy client info to clipboard
From the listing page and the create summary page, you can now copy client info to the clipboard using dedicated buttons.
Diffstat (limited to 'app')
-rw-r--r-- | app/Resources/static/themes/_global/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/Resources/static/themes/_global/index.js b/app/Resources/static/themes/_global/index.js index 9ad96fc0..66ac063b 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,12 @@ $(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 | console.info(e.text); | ||
117 | |||
118 | e.clearSelection(); | ||
119 | }); | ||
110 | }); | 120 | }); |