Skip to content

Commit

Permalink
Merge pull request #81 from jan-szejko-steelseries/master
Browse files Browse the repository at this point in the history
Skip palette option for jscolor when empty
  • Loading branch information
fabiocaccamo authored Jul 18, 2022
2 parents ee1ae3a + 81a7720 commit ceeb894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colorfield/templates/colorfield/color.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %} />

0 comments on commit ceeb894

Please sign in to comment.