add the location column

This commit is contained in:
Alexandre Cloutier
2014-08-28 13:20:43 -04:00
parent 07a138e0d6
commit 9bd09cc55d
2 changed files with 10 additions and 1 deletions

View File

@@ -68,6 +68,8 @@
<var:string label:value="To" /></td>
<td id="dateSearchHeader" class="td_header">
<var:string label:value="Date" /></td>
<td id="locationSearchHeader" class="td_header">
<var:string label:value="Location" /></td>
<td id="buttonExpandHeader" class="td_header">
<div id="imgPosition">
<a href="#" id="listCollapse">

View File

@@ -172,8 +172,15 @@ function searchMailsCallback(http) {
var cell4 = row.insertCell(3);
Element.addClassName(cell4, "td_table_4");
cell4.writeAttribute("colspan", "2");
cell4.innerHTML = response.headers[i][7];
var cell5 = row.insertCell(4);
Element.addClassName(cell5, "td_table_5");
cell5.writeAttribute("colspan", "2");
var folderPath = http.callbackData.folderName.split("/");
var folderLocation = folderPath[folderPath.length - 1]; // get the last element of the array (location)
folderLocation = folderLocation.substr(6); // strip down the prefix folder
cell5.innerHTML = folderLocation;
}
}