From 94f86f143147b9093091b29a16bc718254025a99 Mon Sep 17 00:00:00 2001 From: Kirill Malakhov Date: Sun, 23 Jun 2019 11:01:23 +0300 Subject: [PATCH 1/2] fix Highlighting terms in text area --- static/javascripts/ken-recap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/javascripts/ken-recap.js b/static/javascripts/ken-recap.js index ef74f33..af22f60 100644 --- a/static/javascripts/ken-recap.js +++ b/static/javascripts/ken-recap.js @@ -505,7 +505,8 @@ function forUploadResultListClickAndEnterPressEvents() { // $textContent.highlightWithinTextarea(onInput); function onInput(input) { - var regex = new RegExp('\\b(\\w*' + $uploadResultList.prop('value') + '\\w*)\\b', 'gi'); + let term = $uploadResultList.prop('value').replace(/\s?([-])\s?/g,'-'); + var regex = new RegExp('\\b(\\w*' + term + '\\w*)\\b', 'gi'); return regex; } $textContent.highlightWithinTextarea(onInput); From 16e1acc7bed5e61e6f4c0231ab69c827b64dd698 Mon Sep 17 00:00:00 2001 From: Kirill Malakhov Date: Sun, 23 Jun 2019 11:02:19 +0300 Subject: [PATCH 2/2] fix loader colour --- static/stylesheets/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/stylesheets/style.css b/static/stylesheets/style.css index e8cb41e..a256e90 100644 --- a/static/stylesheets/style.css +++ b/static/stylesheets/style.css @@ -265,8 +265,8 @@ select { .middle, .inner { border: 3px solid transparent; - border-top-color: #8BC34A; - border-right-color: #8BC34A; + border-top-color: #546E7A; + border-right-color: #546E7A; border-radius: 50%; position: absolute; top: 50%;