commit/galaxy-central: jeremy goecks: Fix color config initialization to use default value rather than random value.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/f5700f9988e6/ Changeset: f5700f9988e6 User: jeremy goecks Date: 2014-03-09 18:01:48 Summary: Fix color config initialization to use default value rather than random value. Affected #: 1 file diff -r 765236afce9551bb8938d236e12ed5d90cbe2c54 -r f5700f9988e64b84254e72b619fa4d2dc1b4e444 static/scripts/utils/config.js --- a/static/scripts/utils/config.js +++ b/static/scripts/utils/config.js @@ -17,13 +17,14 @@ } if (!this.get('value')) { - if (this.get('type') === 'color') { + // Use default to set value. + this.set_value(this.get('default_value')); + + // If no default value for color config, set random color. + if (!this.get('value') && this.get('type') === 'color') { // For color setting, set random color. this.set('value', util_mod.get_random_color()); } - else { - this.set_value(this.get('default_value')); - } } }, Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org