Commit a9f088a3 authored by Olga Brani's avatar Olga Brani
Browse files

Style bug fixes

parent 842d4a6b
......@@ -385,14 +385,14 @@ table.alt-style tr td a.open { background-position:-16px 0}
.quotas-form .double-checks .with-checkbox input[type="text"] { width:60px; float:left; margin:9px 15px -9px; display:none; padding:6px; }
.quotas-form .double-checks .with-checkbox label{ width:auto; float:left; margin-left:35px; }
.quotas-form .double-checks .with-checkbox input[type="text"].hideshow { display:block; }
form.quotas-form legend span.info { top:0; bottom:auto; left:250px; }
form.quotas-form legend span.info { top:0; bottom:auto; left:225px; }
form.quotas-form legend span.info span { width:400px; }
.quotas-form .with-checkbox+.with-checkbox { width:196px; }
/* stats */
.stats ul { margin:0; padding:0; list-style:none outside none; }
.stats ul li { margin:0 0 1em 0; padding:0 0 1em 0; list-style:none outside none; background:url(../images/stats-line.jpg) repeat-x left bottom}
.stats .bar { padding:20px 0; text-align:center; float:left; width:200px;}
.stats .bar { padding: 0; text-align:center; float:left; width:200px;}
.stats .bar div { width:340px; height:30px; border:1px solid #000;}
.stats .bar span { text-align:right; display:block; height:100%; color:#fff; line-height:30px; font-size:1.231em; text-indent:50px;}
.stats .red .bar span { background:#ef4f54; }
......
......@@ -229,6 +229,12 @@ $(document).ready(function() {
$(this).hide();
})
$('.stats .bar').each(function(){
h=parseInt($(this).parent('li').height());
g=(h-32)/2;
$(this).css('marginTop',g)
})
});
......
......@@ -10,7 +10,7 @@ $(document).ready(function() {
if( $(this).hasClass(id) ) {
$(this).appendTo('.foo');
$(this).show('slow');
$(this).find('input')[0].focus();
$(this).find('input')[0].focus()
}
});
}
......@@ -25,8 +25,8 @@ $(document).ready(function() {
$(this).siblings('fieldset').find('input[type="checkbox"].limited').removeAttr('checked');
$(this).siblings('fieldset').find('input[type="checkbox"].unlimited').attr('checked','checked');
$(this).siblings('fieldset').find('.double-checks input[type="text"]').removeClass('hideshow');
$(this).parents('.group').appendTo('.not-foo');
$(this).parents('.group').hide('slow');
$(this).parents('.group').appendTo('.not-foo');
groupClass = $(this).parents('.group').attr('class').replace('group ', '');
$('.quotas-form ul li a').each(function() {
if($(this).attr('id')==groupClass) {
......@@ -41,13 +41,12 @@ $(document).ready(function() {
$('.quotas-form .checkbox-widget.limited').click(function(e){
e.preventDefault();
$(this).siblings('input[type="text"]').toggleClass('hideshow');
$(this).siblings('input[type="text"]').toggle();
$(this).siblings('input[type="text"]').focus();
parentdiv = $(this).parents('.form-row').prev('.form-row');
parentdiv.find('input[type="checkbox"].unlimited').removeAttr('checked');
parentdiv.find('.checkbox-widget').removeClass('checked');
checkTextInput();
});
$('.quotas-form .checkbox-widget.unlimited').click(function(e){
......@@ -55,9 +54,12 @@ $(document).ready(function() {
parentdiv.find('.checkbox-widget').removeClass('checked');
parentdiv.find('input[type="checkbox"].limited').removeAttr('checked');
parentdiv.find('input[type="text"]').val('');
parentdiv.find('input[type="text"]').removeClass('hideshow');
parentdiv.find('input[type="text"]').hide();
})
});
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment