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