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
Léo-Paul Géneau
gitlab-ce
Commits
808dc2f2
Commit
808dc2f2
authored
Aug 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Namespaced sortable default options function
parent
aa05b5ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+1
-1
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+1
-1
app/assets/javascripts/boards/mixins/sortable_default_options.js.es6
...javascripts/boards/mixins/sortable_default_options.js.es6
+3
-4
No files found.
app/assets/javascripts/boards/components/board.js.es6
View file @
808dc2f2
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
}
}
},
},
ready () {
ready () {
const options = gl.getBoardSortableDefaultOptions({
const options = gl.
issueBoards.
getBoardSortableDefaultOptions({
disabled: this.disabled,
disabled: this.disabled,
group: 'boards',
group: 'boards',
draggable: '.is-draggable',
draggable: '.is-draggable',
...
...
app/assets/javascripts/boards/components/board_list.js.es6
View file @
808dc2f2
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
},
},
},
},
ready () {
ready () {
const options = gl.getBoardSortableDefaultOptions({
const options = gl.
issueBoards.
getBoardSortableDefaultOptions({
group: 'issues',
group: 'issues',
sort: false,
sort: false,
disabled: this.disabled,
disabled: this.disabled,
...
...
app/assets/javascripts/boards/mixins/sortable_default_options.js.es6
View file @
808dc2f2
((w) => {
((w) => {
if (!window.gl) {
window.gl = window.gl || {};
window.gl = {};
window.gl.issueBoards = window.gl.issueBoards || {};
}
gl.getBoardSortableDefaultOptions = (obj) => {
gl.
issueBoards.
getBoardSortableDefaultOptions = (obj) => {
let defaultSortOptions = {
let defaultSortOptions = {
forceFallback: true,
forceFallback: true,
fallbackClass: 'is-dragging',
fallbackClass: 'is-dragging',
...
...
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