Writes launch site cookie table

pull/73/head
jonsowman 2010-08-10 20:39:28 +00:00
rodzic 327e8dff0f
commit 8b828ec3c3
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -710,10 +710,12 @@ function constructCookieLocationsTable(cookie_name) {
throwError("Tried to write from an empty cookie");
} else {
idx = $.Jookie.Get(cookie_name, "idx");
t += "<td>Index</td><td>Name</td><td>Delete</td>";
t += "<td>Index</td><td>Name</td><td>Use</td><td>Delete</td>";
for (i=1; i<=idx; i++) {
t += "<tr>";
t += "<td>"+i+"</td><td>"+$.Jookie.Get(cookie_name, i+"_name")+"</td><td>Delete</td>";
t += "<td>"+i+"</td><td>"+$.Jookie.Get(cookie_name, i+"_name")+"</td><td>";
t += "<a id='"+i+"_usethis' onClick='setCookieLatLng("+i+")'>Use</a>";
t += "</td><td>Delete</td>";
t += "</tr>";
}
t += "</table>";