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 {
var table = $(
'<table><tr>' +
'<th></th>' +
'<th>Name</th>' +
'<th align="right">Last Modified</th>' +
'<th></th>' +
'</tr></table>'
).appendTo(container)[0];
@ -109,6 +109,16 @@ function renderProjects(data) {
var tr = table.insertRow(table.rows.length);
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>')
.addClass("delete-project")
.attr("title","Delete this project")
@ -131,16 +141,6 @@ function renderProjects(data) {
return false;
}).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++) {