From d807c37cf85e2e128965ea44f54bfc3b7ead5bdb Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 15 Jun 2021 14:50:55 +0200 Subject: [PATCH] DOC: update CHANGELOG --- CHANGELOG.md | 2 ++ src/core/js/ext_cosmetics.js | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcabc44b..f6a7a87c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added (for new features, dependecies etc.) +* `ext_cosmetics` module which converts http(s) uris in property values into + clickable links. * Displaying and interacting with the entity state. * Change password functionality for users of the internal user source. * Visually highlighted drop zones for properties and parents in the edit_mode. diff --git a/src/core/js/ext_cosmetics.js b/src/core/js/ext_cosmetics.js index 26231e1a..4d935a2a 100644 --- a/src/core/js/ext_cosmetics.js +++ b/src/core/js/ext_cosmetics.js @@ -30,6 +30,7 @@ var cosmetics = new function () { var _linkify = function () { $('.caosdb-f-property-text-value').each(function (index) { + // TODO also extract and convert links surrounded by other text if (/^https?:\/\//.test(this.innerText)) { var uri = this.innerText; var text = uri -- GitLab