mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-11 21:50:15 +01:00
Let color be cleared (null wouldn't be returned)
This commit is contained in:
parent
753ce75b15
commit
2232895b39
@ -193,7 +193,18 @@ var et2_color = et2_inputWidget.extend(
|
|||||||
else if (typeof color == "object" && color.val)
|
else if (typeof color == "object" && color.val)
|
||||||
{
|
{
|
||||||
// Prefix # to match previous picker values
|
// Prefix # to match previous picker values
|
||||||
this.value = '#'+color.val("hex");
|
var hex = color.val('hex');
|
||||||
|
// Hex might be null
|
||||||
|
if(hex)
|
||||||
|
{
|
||||||
|
hex = '#'+hex;
|
||||||
|
}
|
||||||
|
else if(this.value != hex)
|
||||||
|
{
|
||||||
|
// Color was cleared
|
||||||
|
hex = '';
|
||||||
|
}
|
||||||
|
this.value = hex;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update picker
|
// Update picker
|
||||||
|
Loading…
Reference in New Issue
Block a user