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(-) 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 b9cf9d2116991ba368d127545a2797b3843422c7 Mon Sep 17 00:00:00 2001 From: Austin Date: Sun, 3 Jul 2016 01:18:59 -0500 Subject: Update submodules --- php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php b/php index 5abbc32..74d9ece 160000 --- a/php +++ b/php @@ -1 +1 @@ -Subproject commit 5abbc323d7f64df5fcf16255db79de339dc72567 +Subproject commit 74d9ece4e8cb9a8f5311fbfe995427935d2659e7 -- cgit v1.2.3 From 6d98f1a85a9dbdc3ed5cfa2751c2ec0d4437fdba Mon Sep 17 00:00:00 2001 From: Austin Date: Sun, 3 Jul 2016 12:34:57 -0500 Subject: change demo url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5710f9..979ea0f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Pomf is a simple file uploading and sharing platform. ### Demo -See the real world example at [Pantsu.cat](https://pantsu.cat/). +See the real world example at [try.pantsu.cat](https://try.pantsu.cat/). ## Requirements -- cgit v1.2.3 From a257b13c4c3c226c3ea37f955cad8426e99bd9d1 Mon Sep 17 00:00:00 2001 From: ileyd Date: Mon, 4 Jul 2016 15:09:19 +1000 Subject: Corrected destination path for copy-moe target (#46) Previously the line copied the moe dir to DESTDIR/moe/, resulting in the path of the dir itself being DESTDIR/moe/moe. Fixed this --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d4d553..e3fa0c0 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ endif copy-moe: ifneq ($(wildcard $(CURDIR)/moe/.),) - cp -rv $(CURDIR)/moe $(CURDIR)/build/moe + cp -rv $(CURDIR)/moe $(CURDIR)/build/ else $(error The moe submodule was not found) endif -- 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(+) 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