add: var cp = document.getElementById("tdb-control-panel"); if(items == 0) cp.style.display = "none"; else cp.style.display = "table-cell";  
context: function setPageState(hasPrevPage, hasNextPage, curPage, itemsPerPage, items) {    function setValue(eid, value) {        var e = document.getElementById(eid);        if(e.childNodes.length == 0) {            e.appendChild(document.createTextNode(value));        } else {            e.firstChild.nodeValue = value;        }    }    var offset = (curPage - 1) * itemsPerPage + 1;    var end = offset + itemsPerPage - 1;    if(items < end)        end = items;    setValue("tdb-item-start", offset);    setValue("tdb-item-end", end);    setValue("tdb-total-items", items);    function enable(things) {        for(var i = 0; i < things.length; i++) {            var thing = things[i];            document.getElementById(thing).style.display = "inline";            document.getElementById(thing + "-disabled").style.display = "none";        }    }    function disable(things) {        for(var i = 0; i < things.length; i++) {            var thing = things[i];            document.getElementById(thing + "-disabled").style.display = "inline";            document.getElementById(thing).style.display = "none";        }    }    const prevs = ["prev-page", "first-page"];    const nexts = ["next-page", "last-page"];    if (hasPrevPage) {        enable(prevs);    } else {        disable(prevs);    }    if (hasNextPage) {        enable(nexts);    } else {        disable(nexts);    }    var tdb = document.getElementById("tdb").firstChild;    alternateBgColors(tdb.getElementsByTagName("tbody")[0].childNodes,                      ["tdb-row", "tdb-row-alt"]);}
meta: 3455	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3455/916a4d96f90d881a27032ac7c421a90e6ef42c89/tdb.js/clean/xmantissa/static/js/tdb.js