summaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-12 22:09:17 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-12 22:09:17 -0400
commit64ac705c1e9808ee6d3e5d7d6a07514f2e125f99 (patch)
tree8bf44fb03e918657e2a081bb216126f557559184 /assets/js
parent9722cf61520b166454ab7b4cda5b610d56f1fa77 (diff)
Refresh the board only when it's necessary and add a link on the task title
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/board.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/assets/js/board.js b/assets/js/board.js
index 501c39c3..3c5ec51c 100644
--- a/assets/js/board.js
+++ b/assets/js/board.js
@@ -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;
}
}