Feature/#3 better display of language icons #55
|
@ -33,7 +33,7 @@ function updateLanguageDisplay(node) {
|
||||||
kaffem
commented
Review
```suggestion
doUpdateLanguageDisplay(col, false);
```
kaffem
commented
Review
```suggestion
doUpdateLanguageDisplay(col, true);
```
kaffem
commented
Review
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
|||||||
let dubs = [];
|
let dubs = [];
|
||||||
|
|
||||||
// find subs
|
// find subs
|
||||||
subCols = col.querySelectorAll('[ng-hide*="sub"]');
|
let subCols = col.querySelectorAll('[ng-hide*="sub"]');
|
||||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
|||||||
subCols.forEach(element => {
|
subCols.forEach(element => {
|
||||||
let langAttr = element.attributes['ng-hide'].value;
|
let langAttr = element.attributes['ng-hide'].value;
|
||||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
|
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
|
||||||
|
@ -43,7 +43,7 @@ function updateLanguageDisplay(node) {
|
||||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
|||||||
});
|
});
|
||||||
|
|
||||||
// find dubs
|
// find dubs
|
||||||
dubCols = col.querySelectorAll('[ng-hide*="dub"]');
|
let dubCols = col.querySelectorAll('[ng-hide*="dub"]');
|
||||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
|||||||
dubCols.forEach(element => {
|
dubCols.forEach(element => {
|
||||||
let langAttr = element.attributes['ng-hide'].value;
|
let langAttr = element.attributes['ng-hide'].value;
|
||||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));
|
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));
|
||||||
|
|
||||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
Loading…
Reference in a new issue