From 16618c9f118fefda0efed8a08ebf6d018e8d0baa Mon Sep 17 00:00:00 2001 From: oupala Date: Thu, 18 Jul 2019 16:59:20 +0200 Subject: [PATCH 1/3] chore: bump version from 2.1.2 to 2.1.3-dev --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f56cc4..701b83b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apaxy", - "version": "2.1.2", + "version": "2.1.3-dev", "description": "A simple, customisable theme for your Apache directory listing.", "main": "index.js", "scripts": { From afa2e5197064f9eac7086a0025c12d956ef4ed7e Mon Sep 17 00:00:00 2001 From: oupala Date: Thu, 18 Jul 2019 19:03:26 +0200 Subject: [PATCH 2/3] fix: remove useless js Remove some old js code which now seems useless. It aimed to fix links when not adding a / at the end of the URI. fix #132 --- apaxy/theme/apaxy.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apaxy/theme/apaxy.js b/apaxy/theme/apaxy.js index 608b377..cc2080a 100644 --- a/apaxy/theme/apaxy.js +++ b/apaxy/theme/apaxy.js @@ -1,13 +1,3 @@ -// fix links when not adding a / at the end of the URI -var uri = window.location.pathname.substr(1); -if (uri.substring(uri.length - 1) !== '/') { - var indexes = document.getElementsByClassName('indexcolname'); - for (let i of indexes) { - var a = i.getElementsByTagName('a')[0]; - a.href = '/' + a.getAttribute('href', 2); - } -} - // content filtering, based on "light javascript table filter" by Chris Coyier // https://codepen.io/chriscoyier/pen/tIuBL - MIT License (function(document) { From f71e39d3b1e2a7f3e6901c08e356e248243e643c Mon Sep 17 00:00:00 2001 From: oupala Date: Thu, 18 Jul 2019 22:46:51 +0200 Subject: [PATCH 3/3] chore: bump version from 2.1.3-dev to 2.1.3 --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bfd128..56de4e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [2.1.3](https://github.com/oupala/apaxy/compare/2.1.2...2.1.3) (2019-07-18) + + +### Bug Fixes + +* remove useless js ([afa2e51](https://github.com/oupala/apaxy/commit/afa2e51)), closes [#132](https://github.com/oupala/apaxy/issues/132) + + + ## [2.1.2](https://github.com/oupala/apaxy/compare/2.1.1...2.1.2) (2019-06-04) diff --git a/package.json b/package.json index 701b83b..cca78aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apaxy", - "version": "2.1.3-dev", + "version": "2.1.3", "description": "A simple, customisable theme for your Apache directory listing.", "main": "index.js", "scripts": {