diff --git a/colorfield/templates/colorfield/color.html b/colorfield/templates/colorfield/color.html index 330a713..bd6a03d 100755 --- a/colorfield/templates/colorfield/color.html +++ b/colorfield/templates/colorfield/color.html @@ -4,6 +4,6 @@ name="{{ name }}" value="{% firstof value default '' %}" placeholder="{% firstof value default '' %}" - data-jscolor="{hash:true,width:225,height:150,format:'{{ format }}',required:{% if required %}true{% else %}false{% endif %},paletteCols:4,paletteHeight:28,palette:{{ palette|safe }}}" + data-jscolor="{hash:true,width:225,height:150,format:'{{ format }}',required:{% if required %}true{% else %}false{% endif %},paletteCols:4,paletteHeight:28{% if palette %},palette:{{ palette|safe }}{% endif %}}" {% if disabled %}disabled{% endif %} {% if required %}required{% endif %} />