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

Namespaced sortable default options function

parent aa05b5ed
......@@ -47,7 +47,7 @@
}
},
ready () {
const options = gl.getBoardSortableDefaultOptions({
const options = gl.issueBoards.getBoardSortableDefaultOptions({
disabled: this.disabled,
group: 'boards',
draggable: '.is-draggable',
......
......@@ -44,7 +44,7 @@
},
},
ready () {
const options = gl.getBoardSortableDefaultOptions({
const options = gl.issueBoards.getBoardSortableDefaultOptions({
group: 'issues',
sort: false,
disabled: this.disabled,
......
((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 = {
forceFallback: true,
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