Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
a3831192
Commit
a3831192
authored
Aug 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cursor for when moving
parent
22f2f231
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
6 deletions
+33
-6
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+8
-0
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+10
-6
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+15
-0
No files found.
app/assets/javascripts/boards/components/board.js.es6
View file @
a3831192
...
@@ -48,8 +48,16 @@
...
@@ -48,8 +48,16 @@
forceFallback: true,
forceFallback: true,
fallbackClass: 'is-dragging',
fallbackClass: 'is-dragging',
ghostClass: 'is-ghost',
ghostClass: 'is-ghost',
scrollSensitivity: 150,
scrollSpeed: 50,
onUpdate: function (e) {
onUpdate: function (e) {
BoardsStore.moveList(e.oldIndex, e.newIndex);
BoardsStore.moveList(e.oldIndex, e.newIndex);
},
onStart: function () {
document.body.classList.add('is-dragging');
},
onEnd: function () {
document.body.classList.remove('is-dragging');
}
}
});
});
}
}
...
...
app/assets/javascripts/boards/components/board_list.js.es6
View file @
a3831192
...
@@ -44,14 +44,18 @@
...
@@ -44,14 +44,18 @@
forceFallback: true,
forceFallback: true,
fallbackClass: 'is-dragging',
fallbackClass: 'is-dragging',
ghostClass: 'is-ghost',
ghostClass: 'is-ghost',
onAdd: (e) => {
onAdd: function (e) {
let fromListId = e.from.getAttribute('data-board');
const fromListId = parseInt(e.from.getAttribute('data-board')),
fromListId = parseInt(fromListId) || fromListId;
toListId = parseInt(e.to.getAttribute('data-board')),
let toListId = e.to.getAttribute('data-board');
issueId = parseInt(e.item.getAttribute('data-issue'));
toListId = parseInt(toListId) || toListId;
const issueId = parseInt(e.item.getAttribute('data-issue'));
BoardsStore.moveCardToList(fromListId, toListId, issueId);
BoardsStore.moveCardToList(fromListId, toListId, issueId);
},
onStart: function () {
document.body.classList.add('is-dragging');
},
onEnd: function () {
document.body.classList.remove('is-dragging');
}
}
});
});
...
...
app/assets/stylesheets/pages/boards.scss
View file @
a3831192
...
@@ -2,6 +2,13 @@
...
@@ -2,6 +2,13 @@
display
:
none
;
display
:
none
;
}
}
.is-dragging
{
*
{
cursor
:
-
webkit-grabbing
;
cursor
:
grabbing
;
}
}
.dropdown-menu-issues-board-new
{
.dropdown-menu-issues-board-new
{
width
:
320px
;
width
:
320px
;
...
@@ -94,6 +101,8 @@
...
@@ -94,6 +101,8 @@
.board-header
{
.board-header
{
border-top-left-radius
:
$border-radius-default
;
border-top-left-radius
:
$border-radius-default
;
border-top-right-radius
:
$border-radius-default
;
border-top-right-radius
:
$border-radius-default
;
cursor
:
-
webkit-grab
;
cursor
:
grab
;
&
.has-border
{
&
.has-border
{
padding-top
:
(
$gl-padding
-
3px
);
padding-top
:
(
$gl-padding
-
3px
);
...
@@ -212,10 +221,16 @@
...
@@ -212,10 +221,16 @@
border-radius
:
$border-radius-default
;
border-radius
:
$border-radius-default
;
box-shadow
:
0
1px
2px
rgba
(
186
,
186
,
186
,
0
.5
);
box-shadow
:
0
1px
2px
rgba
(
186
,
186
,
186
,
0
.5
);
list-style
:
none
;
list-style
:
none
;
cursor
:
-
webkit-grab
;
cursor
:
grab
;
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
a
{
cursor
:
pointer
;
}
}
}
.card-title
{
.card-title
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment