Revision f932b578 snf-astakos-app/astakos/im/static/im/js/quotas.js

b/snf-astakos-app/astakos/im/static/im/js/quotas.js
25 25
		$(this).siblings('fieldset').find('input[type="checkbox"].limited').removeAttr('checked');  
26 26
		$(this).siblings('fieldset').find('input[type="checkbox"].unlimited').attr('checked','checked');  
27 27
		$(this).siblings('fieldset').find('.double-checks input[type="text"]').removeClass('hideshow');
28
		$(this).parents('.group').hide('slow');
29
		$(this).parents('.group').appendTo('.not-foo');	
28
		$(this).parents('.group').hide('slow', function() {
29
		    $(this).appendTo('.not-foo');	
30
		});
30 31
		groupClass = $(this).parents('.group').attr('class').replace('group ', '');
31 32
		$('.quotas-form ul li a').each(function() {
32 33
			if($(this).attr('id')==groupClass) {
......
46 47
	 	parentdiv = $(this).parents('.form-row').prev('.form-row');
47 48
	 	parentdiv.find('input[type="checkbox"].unlimited').removeAttr('checked');  
48 49
	 	parentdiv.find('.checkbox-widget').removeClass('checked');
49
	 	checkTextInput();
50
		 
50 51
	});
51 52
	
52 53
	$('.quotas-form .checkbox-widget.unlimited').click(function(e){
53 54
		parentdiv = $(this).parents('.form-row').next('.form-row');
54
		parentdiv.find('.checkbox-widget').removeClass('checked');
55
		parentdiv.find('input[type="checkbox"].limited').removeAttr('checked');  
56
		parentdiv.find('input[type="text"]').val('');	
57
		parentdiv.find('input[type="text"]').hide();	
55
		if (parentdiv.find('.checkbox-widget').hasClass('checked')){
56
			parentdiv.find('.checkbox-widget').removeClass('checked');
57
			parentdiv.find('input[type="checkbox"].limited').removeAttr('checked');  
58
			parentdiv.find('input[type="text"]').val('');	
59
			parentdiv.find('input[type="text"]').hide();	
60
		}
61
		
58 62
		
59 63
		
60 64
	})
61 65
	
62
	
66
	$('input:radio').uniform();
67
	$('.radio .radio span').each(function(index) {	    
68
		if ($(this).hasClass('checked')){
69
			alert('f');
70
		}
71
	});
72

  
63 73
	
64 74
	
65 75
});

Also available in: Unified diff