hide appended color pickers
This commit is contained in:
parent
c858b247c1
commit
0a9d34a6c9
@ -531,6 +531,7 @@ define([
|
|||||||
if ($testColor.attr('type') !== "color" || $testColor.val() === '!') { return; } // TODO
|
if ($testColor.attr('type') !== "color" || $testColor.val() === '!') { return; } // TODO
|
||||||
$back.on('click', function() {
|
$back.on('click', function() {
|
||||||
var $picker = $('<input>', { type: 'color', value: backColor })
|
var $picker = $('<input>', { type: 'color', value: backColor })
|
||||||
|
.css({ display: 'none', })
|
||||||
.on('change', function() {
|
.on('change', function() {
|
||||||
updateColors(undefined, this.value);
|
updateColors(undefined, this.value);
|
||||||
onLocal();
|
onLocal();
|
||||||
@ -542,6 +543,7 @@ define([
|
|||||||
});
|
});
|
||||||
$text.on('click', function() {
|
$text.on('click', function() {
|
||||||
var $picker = $('<input>', { type: 'color', value: textColor })
|
var $picker = $('<input>', { type: 'color', value: textColor })
|
||||||
|
.css({ display: 'none', })
|
||||||
.on('change', function() {
|
.on('change', function() {
|
||||||
updateColors(this.value, undefined);
|
updateColors(this.value, undefined);
|
||||||
onLocal();
|
onLocal();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user