Refresh the board only when it's necessary and add a link on the task title
This commit is contained in:
@@ -523,6 +523,10 @@ div.task a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
div.task-title a {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#infos,
|
||||
div.task {
|
||||
position: relative;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user