Commit 808dc2f2 authored by Phil Hughes's avatar Phil Hughes

Namespaced sortable default options function

parent aa05b5ed
...@@ -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',
......
...@@ -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,
......
((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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment