fix color type in options

This commit is contained in:
2015-08-24 20:46:25 +02:00
parent ba39036d2f
commit f5cf6449a4
6 changed files with 4215 additions and 7 deletions

View File

@@ -159,7 +159,9 @@ function addOption(iArrayId, optInfo, $Box)
$Option.append($('<input>', {type:'text', id:optNameId, name:optNameId, value:optInfo.user_value, 'class':'round'}));
break;
case databap.consts.opt_type_color:
$Option.append($('<input>', {type:'color', id:optNameId, name:optNameId, value:optInfo.user_value, 'class':'round'}));
$Option
.addButton('delete', 'Remettre la valeur par défaut', function($This){$This.next().attr('type', 'text').val('');}, '', 'clear no_bg no_text')
.append($('<input>', {type:'color', id:optNameId, name:optNameId, value:optInfo.user_value}));
break;
case databap.consts.opt_type_pass:
$Option.append($('<input>', {type:'password', id:optNameId, name:optNameId, value:optInfo.user_value, 'class':'round'}));