1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:08:00 +01:00

fixed :qmarks/:hs/:bmarks display, add a new template.genericTable() method

This commit is contained in:
Martin Stubenschrott
2008-11-21 12:44:54 +00:00
parent 52038db7ae
commit 5c8b17cc58
5 changed files with 60 additions and 63 deletions

View File

@@ -1381,14 +1381,14 @@ function ItemList(id) //{{{
if (diff == 1) /* Scroll down */
{
let item = items[endIndex - 1];
let row = "html" in item ? util.xmlToDom(item.html, doc) : createDefaultRow(item, true);
let row = "xml" in item ? util.xmlToDom(item.html, doc) : createDefaultRow(item, true);
tbody.removeChild(tbody.firstChild);
tbody.appendChild(row);
}
else /* Scroll up */
{
let item = items[offset];
let row = "html" in item ? util.xmlToDom(item.html, doc) : createDefaultRow(item, true);
let row = "xml" in item ? util.xmlToDom(item.html, doc) : createDefaultRow(item, true);
tbody.removeChild(tbody.lastChild);
tbody.insertBefore(row, tbody.firstChild);
}
@@ -1402,7 +1402,7 @@ function ItemList(id) //{{{
<div class="hl-Completions">
{
template.map(util.range(offset, endIndex), function (i)
"html" in items[i] ? items[i].html : createDefaultRow(items[i]))
"xml" in items[i] ? items[i].html : createDefaultRow(items[i]))
}
</div>
<div class="hl-Completions">