mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
fixed broken completions after html->xml rename
This commit is contained in:
@@ -1381,14 +1381,14 @@ function ItemList(id) //{{{
|
|||||||
if (diff == 1) /* Scroll down */
|
if (diff == 1) /* Scroll down */
|
||||||
{
|
{
|
||||||
let item = items[endIndex - 1];
|
let item = items[endIndex - 1];
|
||||||
let row = "xml" in item ? util.xmlToDom(item.html, doc) : createDefaultRow(item, true);
|
let row = "xml" in item ? util.xmlToDom(item.xml, doc) : createDefaultRow(item, true);
|
||||||
tbody.removeChild(tbody.firstChild);
|
tbody.removeChild(tbody.firstChild);
|
||||||
tbody.appendChild(row);
|
tbody.appendChild(row);
|
||||||
}
|
}
|
||||||
else /* Scroll up */
|
else /* Scroll up */
|
||||||
{
|
{
|
||||||
let item = items[offset];
|
let item = items[offset];
|
||||||
let row = "xml" in item ? util.xmlToDom(item.html, doc) : createDefaultRow(item, true);
|
let row = "xml" in item ? util.xmlToDom(item.xml, doc) : createDefaultRow(item, true);
|
||||||
tbody.removeChild(tbody.lastChild);
|
tbody.removeChild(tbody.lastChild);
|
||||||
tbody.insertBefore(row, tbody.firstChild);
|
tbody.insertBefore(row, tbody.firstChild);
|
||||||
}
|
}
|
||||||
@@ -1402,7 +1402,7 @@ function ItemList(id) //{{{
|
|||||||
<div class="hl-Completions">
|
<div class="hl-Completions">
|
||||||
{
|
{
|
||||||
template.map(util.range(offset, endIndex), function (i)
|
template.map(util.range(offset, endIndex), function (i)
|
||||||
"xml" in items[i] ? items[i].html : createDefaultRow(items[i]))
|
"xml" in items[i] ? items[i].xml : createDefaultRow(items[i]))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="hl-Completions">
|
<div class="hl-Completions">
|
||||||
|
|||||||
Reference in New Issue
Block a user