Success

User tests: Successful: Unsuccessful:

avatar ghost
ghost
13 Jun 2013

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31188

Because the white value is uppercase (#FFFFFF), the javascript trying to set the value (in lower case: #ffffff) fails.
The value should be lowercase and this PR fixes that.

Also fixed the issue with uppercase rgb colors in the custom list.
So this now works too:

<field name="mycolor" type="color" default="none" control="simple" label="Simple: Custom Color List"
    colors="none,#FFFFFF,#000000,#FF0000,#00FF00,#0000FF,#00FFFF,#FF00FF,#FFFF00" />

Testing instructions

Test an item that uses the field type color (with control="simple") and try to set the color to white. before this fix it will safe as none (transparent) and after it should work.

For more info about this field type, see: #807

avatar nonumber nonumber - open - 13 Jun 2013
avatar nonumber
nonumber - comment - 18 Jun 2013

Also fixed the issue with uppercase rgb colors in the custom list.
So this now works too:

<field name="mycolor" type="color" default="none" control="simple" label="Simple: Custom Color List"
    colors="none,#FFFFFF,#000000,#FF0000,#00FF00,#0000FF,#00FFFF,#FF00FF,#FFFF00" />
avatar infograf768 infograf768 - close - 30 Jun 2013
avatar nonumber nonumber - head_ref_deleted - 30 Jun 2013
avatar garyamort garyamort - reference | - 2 Dec 13

Add a Comment

Login with GitHub to post a comment