Skip to content
Snippets Groups Projects
Commit bebd95f0 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Move button to top.

parent 00fbd1d0
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,12 @@
// Allow users to copy all questions to the clipboard.
if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
var $button = $('<button/>').text('Copy questions to clipboard').addClass('link link--button js-clipboard-button');
$('.application-form').append($button);
var $button = $('<button/>')
.text('Copy questions to clipboard')
.addClass('link link--button js-clipboard-button')
.css({'display': 'block', 'margin-left': 'auto'})
.attr('title', 'Copies all the questions to the clipboard in plain text.');
$('.application-form').before($button);
$('.js-clipboard-button').on('click', function (e) {
e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment