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'}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1160,6 +1160,16 @@
padding:3px 5px;
}
#options .options_box .option_line .clear {
margin-left:10px;
float:right;
clear:inherit;
color:$col_main_1;
}
#options .options_box .option_line .clear + input {
width:calc(50% - 10px - 30px);
}
#options .options_box .button {
float:left;
clear:both;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long