function fillRequestQueue(requests) {
    var requestQueueTable = $('request-queue');
    requestQueueTable.textContent = '';

    var template = $('request-queue-table-row');
    var td = template.content.querySelectorAll('td');
    for (let request of requests) {
      var checkbox = td[0].querySelector('input');
      checkbox.setAttribute('value', request.id);

      td[1].textContent = request.onlineUrl;
      td[2].textContent = new Date(request.creationTime);
      td[3].textContent = request.status;
      td[4].textContent = request.requestOrigin;

      var row = document.importNode(template.content, true);
      requestQueueTable.appendChild(row);
    }
    savePageRequests = requests;
  }
/**
   * Fill requests table.
   * @param {!Array<SavePageRequest>} requests An array object representing
   *     the request queue.
   */
Fill requests table.
@param {!Array} requests An array object representing
the request queue.
Fill requests table . @param { !Array } requests An array object representing the request queue .
function fillRequestQueue(requests) {
    var requestQueueTable = $('request-queue');
    requestQueueTable.textContent = '';
    var template = $('request-queue-table-row');
    var td = template.content.querySelectorAll('td');
    for (let request of requests) {
      var checkbox = td[0].querySelector('input');
      checkbox.setAttribute('value', request.id);
      td[1].textContent = request.onlineUrl;
      td[2].textContent = new Date(request.creationTime);
      td[3].textContent = request.status;
      td[4].textContent = request.requestOrigin;
      var row = document.importNode(template.content, true);
      requestQueueTable.appendChild(row);
    }
    savePageRequests = requests;
  }
function fillRequestQueue ( requests ) { var requestQueueTable = $ ( 'request-queue' ) ; requestQueueTable . textContent = '' ; var template = $ ( 'request-queue-table-row' ) ; var td = template . content . querySelectorAll ( 'td' ) ; for ( let request of requests ) { var checkbox = td [ 0 ] . querySelector ( 'input' ) ; checkbox . setAttribute ( 'value' , request . id ) ; td [ 1 ] . textContent = request . onlineUrl ; td [ 2 ] . textContent = new Date ( request . creationTime ) ; td [ 3 ] . textContent = request . status ; td [ 4 ] . textContent = request . requestOrigin ; var row = document . importNode ( template . content , true ) ; requestQueueTable . appendChild ( row ) ; } savePageRequests = requests ; }
Fill requests table.
Fill requests table .