mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-10 09:20:26 +00:00
Clarify method name
This commit is contained in:
parent
d1ce54806f
commit
a4293068bf
@ -33,7 +33,7 @@ function SimpleEngine(options) {
|
||||
} else {
|
||||
if(this.widget.editType === "color") {
|
||||
// The <input type="color"> element requires a six digit hex value
|
||||
this.domNode.value = $tw.utils.convertColorToCSSRGBString(this.value);
|
||||
this.domNode.value = $tw.utils.convertCSSColorToRGBString(this.value);
|
||||
} else {
|
||||
this.domNode.value = this.value;
|
||||
}
|
||||
|
@ -42,9 +42,9 @@ exports.parseCSSColorObject = function(colourString) {
|
||||
};
|
||||
|
||||
/*
|
||||
Convert a Color.js colour to a CSS RGB string suitable for use with the <input type="color"> element
|
||||
Convert a CSS colour to an RGB string suitable for use with the <input type="color"> element
|
||||
*/
|
||||
exports.convertColorToCSSRGBString = function(colourString) {
|
||||
exports.convertCSSColorToRGBString = function(colourString) {
|
||||
var c = exports.parseCSSColorObject(colourString);
|
||||
if(c) {
|
||||
var hex = c.toString({format: "hex"});
|
||||
|
Loading…
Reference in New Issue
Block a user