Revision 55a845c0 snf-astakos-app/astakos/im/static/im/js/quotas.js

b/snf-astakos-app/astakos/im/static/im/js/quotas.js
10 10
				if( $(this).hasClass(id) ) {
11 11
					$(this).appendTo('.foo');
12 12
					$(this).show('slow');
13
					$(this).find('input')[0].focus();
13
					$(this).find('input')[0].focus()
14 14
				}
15 15
			});
16 16
		}   
......
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').appendTo('.not-foo');	
29 28
		$(this).parents('.group').hide('slow');
29
		$(this).parents('.group').appendTo('.not-foo');	
30 30
		groupClass = $(this).parents('.group').attr('class').replace('group ', '');
31 31
		$('.quotas-form ul li a').each(function() {
32 32
			if($(this).attr('id')==groupClass) {
......
41 41
		
42 42
	$('.quotas-form .checkbox-widget.limited').click(function(e){
43 43
		e.preventDefault();
44
		$(this).siblings('input[type="text"]').toggleClass('hideshow');
44
		$(this).siblings('input[type="text"]').toggle();
45 45
		$(this).siblings('input[type="text"]').focus();
46 46
	 	parentdiv = $(this).parents('.form-row').prev('.form-row');
47 47
	 	parentdiv.find('input[type="checkbox"].unlimited').removeAttr('checked');  
48 48
	 	parentdiv.find('.checkbox-widget').removeClass('checked');
49
	 		
50
	 	
49
	 	checkTextInput();
51 50
	});
52 51
	
53 52
	$('.quotas-form .checkbox-widget.unlimited').click(function(e){
......
55 54
		parentdiv.find('.checkbox-widget').removeClass('checked');
56 55
		parentdiv.find('input[type="checkbox"].limited').removeAttr('checked');  
57 56
		parentdiv.find('input[type="text"]').val('');	
58
		parentdiv.find('input[type="text"]').removeClass('hideshow');	
57
		parentdiv.find('input[type="text"]').hide();	
59 58
		
60 59
		
61 60
	})
62 61
	
62
	
63
	
64
	
63 65
});

Also available in: Unified diff