From f5a1c416f2e66f711a3a7a7437f940a145f4e916 Mon Sep 17 00:00:00 2001 From: Austin Date: Sun, 3 Jul 2016 01:07:05 -0500 Subject: have JS POST to upload.php in current working directory --- static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/js/app.js') diff --git a/static/js/app.js b/static/js/app.js index 5b1ddec..eaac857 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -117,7 +117,7 @@ document.addEventListener('DOMContentLoaded', function () { var bar = row.querySelector('.file-progress'); var percentIndicator = row.querySelector('.progress-percent'); var xhr = new XMLHttpRequest(); - xhr.open('POST', '/upload.php'); + xhr.open('POST', 'upload.php'); xhr['row'] = row; xhr['bar'] = bar; -- cgit v1.2.3 From f7f512379a3fc0b307125c0459f8837d59f11ad0 Mon Sep 17 00:00:00 2001 From: ileyd Date: Mon, 4 Jul 2016 16:09:42 +1000 Subject: Cleared selection first upon copy button click to fix #45 --- static/js/app.js | 1 + 1 file changed, 1 insertion(+) (limited to 'static/js/app.js') diff --git a/static/js/app.js b/static/js/app.js index eaac857..0215599 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -97,6 +97,7 @@ document.addEventListener('DOMContentLoaded', function () { link.appendChild(element); var range = document.createRange(); range.selectNode(element); + window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand("copy"); link.removeChild(element); -- cgit v1.2.3