Add name to colorpickers
This commit is contained in:
@@ -121,11 +121,11 @@
|
|||||||
var html = "";
|
var html = "";
|
||||||
var id = "favcolor" ;
|
var id = "favcolor" ;
|
||||||
var name = option.name;
|
var name = option.name;
|
||||||
var defaultValue = option.default;
|
var defaultValue = option.default==undefined?"#000000":option.default;
|
||||||
var css = option.css;
|
var css = option.css;
|
||||||
var description = option.description;
|
var description = option.description;
|
||||||
var mode = option.mode;
|
var mode = option.mode;
|
||||||
html += '<div class="inputContainer"><input style="height: 1em; padding: 0px; border: none;" type=color class = "color" value="' + defaultValue + '"data-css = "'+ css+ '" data-mode="'+mode+'" id="' + id + '" name="' + id + '" label="'+name +'" /><div class="fieldDescription">'+description+'</div></div>';
|
html += '<div class="inputContainer"><label><input style="height: 1em; padding: 0px; border: none;" type=color class = "color" value="' + defaultValue + '"data-css = "'+ css+ '" data-mode="'+mode+'" id="' + id + '" name="' + id + '" label="'+name +'" /><span>'+ name +'</span></label><div class="fieldDescription">'+description+'</div></div>';
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
function getNumber(option){
|
function getNumber(option){
|
||||||
@@ -190,6 +190,7 @@
|
|||||||
var html = "";
|
var html = "";
|
||||||
var name = option.name;
|
var name = option.name;
|
||||||
html += html += '<h2 class="sectionTitle" >'+ name +'</h2>';
|
html += html += '<h2 class="sectionTitle" >'+ name +'</h2>';
|
||||||
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createCss(){
|
function createCss(){
|
||||||
|
|||||||
Reference in New Issue
Block a user