mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Remove jquery from ColorsList.js
This commit is contained in:
parent
4836251bd3
commit
e5e85f67c2
@ -139,7 +139,8 @@
|
||||
var colorElement = drop.item.get(0);
|
||||
|
||||
var oldIndex = parseInt(colorElement.dataset.paletteIndex, 10);
|
||||
var newIndex = $('.create-palette-color').index(drop.item);
|
||||
var colors = document.querySelectorAll('.create-palette-color');
|
||||
var newIndex = Array.prototype.indexOf.call(colors, colorElement);
|
||||
this.palette.move(oldIndex, newIndex);
|
||||
|
||||
this.selectedIndex = newIndex;
|
||||
|
Loading…
Reference in New Issue
Block a user