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/css/app.css | 4 ++++ assets/js/board.js | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'assets') diff --git a/assets/css/app.css b/assets/css/app.css index 93321c2e..274c11a3 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -523,6 +523,10 @@ div.task a:hover { text-decoration: underline; } +div.task-title a { + font-weight: normal; +} + #infos, div.task { position: relative; 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