Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iglvzx/IGalvez.Autoindex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIzzy Galvez <i@igalvez.net>2015-10-26 18:02:03 +0300
committerIzzy Galvez <i@igalvez.net>2015-10-26 18:02:03 +0300
commitad5d091292c4661709a2e79f466df39dad1d02c7 (patch)
treeef50e2eb3b8d237fc9f7af97724f0bd5f4f3c32c
parent376a7e1f95c67258d289d983ea1beed533717fe7 (diff)
decodeURI to show folder path in clean format
-rw-r--r--.autoindex/breadcrumbs.js2
-rw-r--r--.autoindex/script.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/.autoindex/breadcrumbs.js b/.autoindex/breadcrumbs.js
index 0d2b2e7..8b3dc57 100644
--- a/.autoindex/breadcrumbs.js
+++ b/.autoindex/breadcrumbs.js
@@ -1,4 +1,4 @@
-var parts = document.URL.split('/');
+var parts = decodeURI(document.URL).split('/');
parts.pop(); // remove last element
diff --git a/.autoindex/script.js b/.autoindex/script.js
index 2ff2510..9145dc5 100644
--- a/.autoindex/script.js
+++ b/.autoindex/script.js
@@ -1,4 +1,4 @@
-document.title = document.URL; // set page title to full URL
+document.title = decodeURI(document.URL); // set page title to full URL
$('table').addClass('table'); // add Bootstrap CSS to table