From 64ac705c1e9808ee6d3e5d7d6a07514f2e125f99 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 12 Mar 2014 22:09:17 -0400 Subject: Refresh the board only when it's necessary and add a link on the task title --- assets/js/board.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'assets/js') 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; } } -- cgit v1.2.3