mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Irregular whitespace
This commit is contained in:
parent
9ce3d44cc6
commit
f5491dc557
@ -100,7 +100,7 @@
|
|||||||
ns.PalettesListController.prototype.getCurrentColorIndex_ = function () {
|
ns.PalettesListController.prototype.getCurrentColorIndex_ = function () {
|
||||||
var currentIndex = 0;
|
var currentIndex = 0;
|
||||||
var selectedColor = document.querySelector('.' + PRIMARY_COLOR_CLASSNAME);
|
var selectedColor = document.querySelector('.' + PRIMARY_COLOR_CLASSNAME);
|
||||||
if (selectedColor) {
|
if (selectedColor) {
|
||||||
currentIndex = parseInt(selectedColor.dataset.colorIndex, 10);
|
currentIndex = parseInt(selectedColor.dataset.colorIndex, 10);
|
||||||
}
|
}
|
||||||
return currentIndex;
|
return currentIndex;
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
if (background) {
|
if (background) {
|
||||||
pskl.UserSettings.set(pskl.UserSettings.CANVAS_BACKGROUND, background);
|
pskl.UserSettings.set(pskl.UserSettings.CANVAS_BACKGROUND, background);
|
||||||
var selected = this.backgroundContainer.querySelector('.selected');
|
var selected = this.backgroundContainer.querySelector('.selected');
|
||||||
if (selected) {
|
if (selected) {
|
||||||
selected.classList.remove('selected');
|
selected.classList.remove('selected');
|
||||||
}
|
}
|
||||||
target.classList.add('selected');
|
target.classList.add('selected');
|
||||||
|
Loading…
Reference in New Issue
Block a user