comment maintainence and a short term regression

This commit is contained in:
wareya committed 2017-12-19 23:37:54 -05:00
1 parent 434909f198
commit 3638d0f0b4
2 files changed
+5 -5

No files matched your search

-1
View File
@@ -35,7 +35,6 @@ function load_part_of_dictionary(filename)
{ {
let req = new XMLHttpRequest(); let req = new XMLHttpRequest();
req.addEventListener("load", builddict); req.addEventListener("load", builddict);
// FIXME: apparently this has to be in an async function now.
req.open("GET", browser.extension.getURL(filename)); req.open("GET", browser.extension.getURL(filename));
req.send(); req.send();
return req; return req;
+5 -4
View File
@@ -282,7 +282,6 @@ function build_div_inner (text, result)
keb.className = "nazeka_main_keb"; keb.className = "nazeka_main_keb";
keb.textContent = kanji_text; keb.textContent = kanji_text;
temptag.appendChild(keb); temptag.appendChild(keb);
// FIXME: show inf for located keb
// list readings // list readings
let readings = []; let readings = [];
@@ -420,14 +419,13 @@ function build_div_inner (text, result)
} }
} }
else else
found_kanji = true; found_kanji = false;
if(!found_kanji) if(!found_kanji)
{ {
let main_reb = document.createElement("span"); let main_reb = document.createElement("span");
main_reb.className = "nazeka_main_reb"; main_reb.className = "nazeka_main_reb";
main_reb.textContent = term.found.reb; main_reb.textContent = term.found.reb;
temptag.appendChild(main_reb); temptag.appendChild(main_reb);
// FIXME: show inf for located reb
if(term.deconj) if(term.deconj)
{ {
let deconj = ""; let deconj = "";
@@ -463,6 +461,8 @@ function build_div_inner (text, result)
// FIXME wrapper span // FIXME wrapper span
if(term.found.inf) if(term.found.inf)
{ {
let maininfos = document.createElement("span");
maininfos.className = "nazeka_main_infos";
for(let info of term.found.inf) for(let info of term.found.inf)
{ {
let reb_inf = document.createElement("span"); let reb_inf = document.createElement("span");
@@ -470,8 +470,9 @@ function build_div_inner (text, result)
reb_inf.textContent += "("; reb_inf.textContent += "(";
reb_inf.textContent += clip(info); reb_inf.textContent += clip(info);
reb_inf.textContent += ")"; reb_inf.textContent += ")";
temptag.appendChild(reb_inf); maininfos.appendChild(reb_inf);
} }
temptag.appendChild(maininfos);
} }
// list alternatives // list alternatives