summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-13 03:14:06 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-13 03:14:06 +0300
commit4203fda906a1b4a104187e54d256e5952d8ae55c (patch)
tree7fe6bc3f30989b2e0a9381f7ee652836e6672755 /ext
parent7ec28bea5422cda4304b660eccdb39d690f74fad (diff)
rename pos to partOfSpeech
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/dictionary.js12
-rw-r--r--ext/mixed/css/display.css2
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 816e96c4..843d05f1 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -112,11 +112,11 @@ function dictTermsUndupe(definitions) {
function dictTermsCompressTags(definitions) {
let lastDictionary = '';
- let lastPos = '';
+ let lastPartOfSpeech = '';
for (const definition of definitions) {
const dictionary = JSON.stringify(definition.definitionTags.filter(tag => tag.category === 'dictionary').map(tag => tag.name).sort());
- const pos = JSON.stringify(definition.definitionTags.filter(tag => tag.category === 'pos').map(tag => tag.name).sort());
+ const partOfSpeech = JSON.stringify(definition.definitionTags.filter(tag => tag.category === 'partOfSpeech').map(tag => tag.name).sort());
const filterOutCategories = [];
@@ -124,13 +124,13 @@ function dictTermsCompressTags(definitions) {
filterOutCategories.push('dictionary');
} else {
lastDictionary = dictionary;
- lastPos = '';
+ lastPartOfSpeech = '';
}
- if (lastPos === pos) {
- filterOutCategories.push('pos');
+ if (lastPartOfSpeech === partOfSpeech) {
+ filterOutCategories.push('partOfSpeech');
} else {
- lastPos = pos;
+ lastPartOfSpeech = partOfSpeech;
}
definition.definitionTags = definition.definitionTags.filter(tag => !filterOutCategories.includes(tag.category));
diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css
index 65cfd7ac..670930ae 100644
--- a/ext/mixed/css/display.css
+++ b/ext/mixed/css/display.css
@@ -92,7 +92,7 @@ hr {
background-color: #5cb85c;
}
-.tag-pos {
+.tag-partOfSpeech {
background-color: #565656;
}