Run prettier on js/script.js
parent
6523a9e81f
commit
3f9eebfada
14
js/script.js
14
js/script.js
|
@ -24,18 +24,17 @@ window.onload = function() {
|
||||||
group: "dndmusicbot-playlists",
|
group: "dndmusicbot-playlists",
|
||||||
filter: ".locked",
|
filter: ".locked",
|
||||||
onMove: (e) => {
|
onMove: (e) => {
|
||||||
if (e.related)
|
if (e.related) {
|
||||||
{
|
|
||||||
return !e.related.classList.contains('locked');
|
return !e.related.classList.contains('locked');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
invertSwap: true,
|
invertSwap: true,
|
||||||
store: {
|
store: {
|
||||||
get: function(sortable) {
|
get: function (sortable) {
|
||||||
var order = localStorage.getItem(sortable.options.group.name);
|
var order = localStorage.getItem(sortable.options.group.name);
|
||||||
return order ? order.split('|') : [];
|
return order ? order.split('|') : [];
|
||||||
},
|
},
|
||||||
set: function(sortable) {
|
set: function (sortable) {
|
||||||
var order = sortable.toArray();
|
var order = sortable.toArray();
|
||||||
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
||||||
}
|
}
|
||||||
|
@ -46,18 +45,17 @@ window.onload = function() {
|
||||||
group: "dndmusicbot-ambiance",
|
group: "dndmusicbot-ambiance",
|
||||||
filter: ".locked",
|
filter: ".locked",
|
||||||
onMove: (e) => {
|
onMove: (e) => {
|
||||||
if (e.related)
|
if (e.related) {
|
||||||
{
|
|
||||||
return !e.related.classList.contains('locked');
|
return !e.related.classList.contains('locked');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
invertSwap: true,
|
invertSwap: true,
|
||||||
store: {
|
store: {
|
||||||
get: function(sortable) {
|
get: function (sortable) {
|
||||||
var order = localStorage.getItem(sortable.options.group.name);
|
var order = localStorage.getItem(sortable.options.group.name);
|
||||||
return order ? order.split('|') : [];
|
return order ? order.split('|') : [];
|
||||||
},
|
},
|
||||||
set: function(sortable) {
|
set: function (sortable) {
|
||||||
var order = sortable.toArray();
|
var order = sortable.toArray();
|
||||||
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue