You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
997 B

$(document).ready(function(){
$('.pr-form input, .pr-form textarea').placeholder();
$('.pr-btn-open').click(function(){
_this = $(this);
$('.pr-interesting-box').find('.pr-interesting-col li').slideDown(200, function(){
_this.fadeOut(400);
});
return false;
});
$('.pr form input').iCheck({
checkboxClass: 'pr-check',
radioClass: 'pr-radio',
increaseArea: '20%' // optional
});
$('.pr-interesting-form .pr-checkbox:checkbox').on('ifToggled', function(){
$('.pr-interesting-list').html('');
$('.pr-interesting-form input:checkbox').each(function(){
if ($(this).is(':checked')){
$('.pr-interesting-list').append('<li data-id="'+$(this).attr('id')+'"><a class="pr-close" href="#">&nbsp;</a> '+$(this).parent().parent().find('label').text()+'</li>');
}
})
});
$('.pr-interesting-list').on('click', '.pr-close', function(){
var _id = $(this).parent().attr('data-id');
$('.pr-interesting-form input:checkbox#'+_id).iCheck('uncheck');
return false;
});
});