move the (x) image away from the link selecting the project (opposite tasks should never be so close as to allow the user to click on one by mistake while implying the other)

git-svn-id: http://google-refine.googlecode.com/svn/trunk@601 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-05-05 01:45:37 +00:00
parent c32899aea6
commit 8aa1f1d9a0

View File

@ -99,9 +99,9 @@ function renderProjects(data) {
} else { } else {
var table = $( var table = $(
'<table><tr>' + '<table><tr>' +
'<th></th>' +
'<th>Name</th>' + '<th>Name</th>' +
'<th align="right">Last Modified</th>' + '<th align="right">Last Modified</th>' +
'<th></th>' +
'</tr></table>' '</tr></table>'
).appendTo(container)[0]; ).appendTo(container)[0];
@ -109,6 +109,16 @@ function renderProjects(data) {
var tr = table.insertRow(table.rows.length); var tr = table.insertRow(table.rows.length);
tr.className = "project"; tr.className = "project";
$('<a></a>')
.text(project.name)
.attr("href", "/project.html?project=" + project.id)
.appendTo(tr.insertCell(tr.cells.length));
$('<div></div>')
.html(formatDate(project.date))
.addClass("last-modified")
.appendTo(tr.insertCell(tr.cells.length));
$('<a></a>') $('<a></a>')
.addClass("delete-project") .addClass("delete-project")
.attr("title","Delete this project") .attr("title","Delete this project")
@ -131,16 +141,6 @@ function renderProjects(data) {
return false; return false;
}).appendTo(tr.insertCell(tr.cells.length)); }).appendTo(tr.insertCell(tr.cells.length));
$('<a></a>')
.text(project.name)
.attr("href", "/project.html?project=" + project.id)
.appendTo(tr.insertCell(tr.cells.length));
$('<div></div>')
.html(formatDate(project.date))
.addClass("last-modified")
.appendTo(tr.insertCell(tr.cells.length));
}; };
for (var i = 0; i < projects.length; i++) { for (var i = 0; i < projects.length; i++) {