Refresh the board only when it's necessary and add a link on the task title

This commit is contained in:
Frédéric Guillot
2014-03-12 22:09:17 -04:00
parent 9722cf6152
commit 64ac705c1e
6 changed files with 34 additions and 6 deletions

View File

@@ -523,6 +523,10 @@ div.task a:hover {
text-decoration: underline;
}
div.task-title a {
font-weight: normal;
}
#infos,
div.task {
position: relative;

View File

@@ -147,9 +147,10 @@
try {
var response = JSON.parse(this.responseText);
if (response.result == true) {
// TODO: don't refresh the whole page!
if (response.result == false) {
window.alert('Unable to update the board');
}
else if (response.refresh == true) {
window.location = "?controller=board&action=show&project_id=" + projectId;
}
}