From 5be71259ae2884c7a461087290696c5a7c489f78 Mon Sep 17 00:00:00 2001 From: peterd Date: Sun, 7 Sep 2014 19:54:31 +0200 Subject: [PATCH] reappending colorPicker Reappending on focus gets colorPicker to foreground --- jQuery_implementation/jqColor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jQuery_implementation/jqColor.js b/jQuery_implementation/jqColor.js index d0c259c..590a1b2 100644 --- a/jQuery_implementation/jqColor.js +++ b/jQuery_implementation/jqColor.js @@ -82,6 +82,7 @@ colorPicker.saveAsBackground(); } colorPickers.current = colorPickers[index]; + $(options.appenTo || document.body).append($colorPicker); $colorPicker.show(colorPicker.color.options.animationSpeed); }); @@ -104,7 +105,7 @@ // $(document.body).append(isColorPicker); } } else if (inputIndex !== -1) { - // input field + // input fireld } else { $colorPicker.hide(animationSpeed); }