diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-12 22:09:17 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-12 22:09:17 -0400 |
commit | 64ac705c1e9808ee6d3e5d7d6a07514f2e125f99 (patch) | |
tree | 8bf44fb03e918657e2a081bb216126f557559184 /assets | |
parent | 9722cf61520b166454ab7b4cda5b610d56f1fa77 (diff) |
Refresh the board only when it's necessary and add a link on the task title
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/app.css | 4 | ||||
-rw-r--r-- | assets/js/board.js | 7 |
2 files changed, 8 insertions, 3 deletions
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; } } |