mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Fix color widget failing if it had no value
This commit is contained in:
parent
c0c20ed9d2
commit
6852499d91
@ -106,7 +106,7 @@ var et2_color = et2_inputWidget.extend(
|
|||||||
|
|
||||||
// Initialize jPicker
|
// Initialize jPicker
|
||||||
|
|
||||||
this.options.color.active = new jQuery.jPicker.Color({hex:this.value});
|
this.options.color.active = new jQuery.jPicker.Color(this.value ? {hex:this.value} : {});
|
||||||
|
|
||||||
// Do this to get a reference to the actual jPicker used, so we can fully remove it in destroy()
|
// Do this to get a reference to the actual jPicker used, so we can fully remove it in destroy()
|
||||||
var list_id = jQuery.jPicker.List.length ? jQuery.jPicker.List.length : 0;
|
var list_id = jQuery.jPicker.List.length ? jQuery.jPicker.List.length : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user