cburschka / cadence

A strophe.js-powered XMPP web client for chatrooms.
6 stars 2 forks source link

Unset text color gets cast to #000000 #413

Closed cburschka closed 8 years ago

cburschka commented 8 years ago

Whenever settings are loaded, a cleared color ('') will be turned into #000000 during ui.loadSettings().

This is because the text color picker doesn't do empty values, and it gets hit by the .change() event and saves its value.

Probably remove the .settings class and give it a special handler that detects if the color picker is enabled at all.