2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-09-24 08:30:57 -06:00

reappending colorPicker

Reappending on focus gets colorPicker to foreground
This commit is contained in:
peterd 2014-09-07 19:54:31 +02:00
parent aa84f06639
commit 5be71259ae

View File

@ -82,6 +82,7 @@
colorPicker.saveAsBackground(); colorPicker.saveAsBackground();
} }
colorPickers.current = colorPickers[index]; colorPickers.current = colorPickers[index];
$(options.appenTo || document.body).append($colorPicker);
$colorPicker.show(colorPicker.color.options.animationSpeed); $colorPicker.show(colorPicker.color.options.animationSpeed);
}); });
@ -104,7 +105,7 @@
// $(document.body).append(isColorPicker); // $(document.body).append(isColorPicker);
} }
} else if (inputIndex !== -1) { } else if (inputIndex !== -1) {
// input field // input fireld
} else { } else {
$colorPicker.hide(animationSpeed); $colorPicker.hide(animationSpeed);
} }