Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-06 15:53:25 +0300
committerPhil Hughes <me@iamphill.com>2017-03-06 15:53:25 +0300
commit91e46dd4a27ddf06b9787a95f64f1dd9ea84bad6 (patch)
treea5af6a5997cdbe43307a401c44cedb4654ab629a /app/assets/javascripts/boards
parent5bf2ab73ba1a812b90ec50be676378eb0ae58fa8 (diff)
Fixed issue when dragging a issue to the bottom when count element is visible
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r--app/assets/javascripts/boards/components/board_list.js.es66
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/board_list.js.es6 b/app/assets/javascripts/boards/components/board_list.js.es6
index b6d367c0ac8..1330d4ae840 100644
--- a/app/assets/javascripts/boards/components/board_list.js.es6
+++ b/app/assets/javascripts/boards/components/board_list.js.es6
@@ -107,8 +107,12 @@ import boardCard from './board_card';
});
},
onUpdate: (e) => {
- gl.issueBoards.BoardsStore.moveIssueInList(this.list, Store.moving.issue, e.oldIndex, e.newIndex, this.sortable.toArray());
+ const sortedArray = this.sortable.toArray().filter(id => id !== '-1');
+ gl.issueBoards.BoardsStore.moveIssueInList(this.list, Store.moving.issue, e.oldIndex, e.newIndex, sortedArray);
},
+ onMove(e) {
+ return !e.related.classList.contains('board-list-count');
+ }
});
this.sortable = Sortable.create(this.$refs.list, options);