Saving without touching anything reset color to black

This commit is contained in:
Andy Teijelo Pérez 2015-11-08 12:41:32 -05:00
parent 628d5ae5c3
commit ebea2b581b
2 changed files with 3 additions and 2 deletions

View file

@ -105,7 +105,7 @@ ff:ff:ff:ff:ff:fe,10.6.122.99
# {"color": "blue", "reserved-by": "Andy"}
ff:ff:ff:ff:ff:fe,10.6.122.100
# {"color": "purple", "reserved-by": "Andy"}
12:24:42:23:24:45,10.6.122.101,set:client122442232445
12:24:42:23:24:45,aa:bb:cc:dd:ee:ff,10.6.122.101,set:client122442232445
ff:ff:ff:ff:ff:fe,10.6.122.102
ff:ff:ff:ff:ff:fe,10.6.122.103
ff:ff:ff:ff:ff:fe,10.6.122.104

View file

@ -51,7 +51,8 @@
{%- if color != 'black' %} data-color="{{ color }}"{% endif %}
><i class="fa fa-square"></i></span>
{% endfor %}
<input type="hidden" id="label-color" name="label-color" value=""/>
<input type="hidden" id="label-color" name="label-color"
value="{{ meta.color if meta.color }}"/>
</div>
</div>
</fieldset>