Permalink
Browse files

Correcting checkbox/radio options using an invalid div element in a l…

…ist for the add link. Updating js/css to resolve related issues. bug 18:resolved
  • Loading branch information...
1 parent ec1912b commit fd3e0ed056124cbc5bde676a5dfe37ec3fb8f356 @viveleroi committed Dec 19, 2013
Showing with 5 additions and 6 deletions.
  1. +3 −4 css/jquery.formbuilder.css
  2. +2 −2 js/jquery.formbuilder.js
@@ -66,8 +66,7 @@ ul.frmb {
.frm-elements .fields { margin-top: 10px }
.frm-elements .fields div {
- clear: both;
- float: left;
+ overflow: hidden;
width: 99%;
}
@@ -88,8 +87,8 @@ ul.frmb {
.frm-elements .fields .add-area {
position: relative;
left: -30px;
- line-height: 0;
- margin-top: -13px;
+ list-style: none;
+ border: 0;
}
.frm-elements .fields .add-area .add {
@@ -192,7 +192,7 @@
field += checkboxFieldHtml('');
}
- field += '<div class="add-area"><a href="#" class="add add_ck">' + opts.messages.add + '</a></div>';
+ field += '<li class="add-area"><a href="#" class="add add_ck">' + opts.messages.add + '</a></li>';
field += '</ol></div>';
field += '</div>';
field += '</div>';
@@ -341,7 +341,7 @@
};
// handle field delete links
$('.frmb').delegate('.remove', 'click', function () {
- $(this).parent('div').animate({
+ $(this).parents('li:eq(0)').animate({
opacity: 'hide',
height: 'hide',
marginBottom: '0px'

0 comments on commit fd3e0ed

Please sign in to comment.