Mercurial > code > home > repos > homeauto
diff service/pilight/static/big-picker.html @ 957:443aa07b81c8
try to read current led setting at page load. sometimes fails, sometimes readss an old value
Ignore-this: 406031419412f0674bb7019f19e3c39f
darcs-hash:20140717055858-312f9-62b960fa1aed71c78b051f129d4228894e108cfb
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 16 Jul 2014 22:58:58 -0700 |
parents | 32e776c53f68 |
children |
line wrap: on
line diff
--- a/service/pilight/static/big-picker.html Sat Jul 12 23:15:35 2014 -0700 +++ b/service/pilight/static/big-picker.html Wed Jul 16 22:58:58 2014 -0700 @@ -82,6 +82,9 @@ var c = Color(e.target.templateInstance.model.c).setLightness(this.lightness); this.hex = c.toString(); }, + hexChanged: function() { + this.lightness = Color(this.hex).getLightness(); + }, lightnessChanged: function() { var c = Color(this.hex).setLightness(this.lightness); this.hex = c.toString();