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

Project table fixed width columns

parent 33cba4ca
......@@ -233,13 +233,11 @@ table.alt-style tr th { font-weight:normal; color:#3582AC }
table.alt-style tr th a { color:#3582AC }
table.alt-style tr td { color:#222; }
table.alt-style tr td:first-child,
table.alt-style tr th:first-child { padding-left:5px; }
table.alt-style tr th:first-child { padding-left:5px; overflow:hidden; }
table.alt-style tr td a { margin:0; }
table.alt-style tr td:first-child a { margin:0; }
table.alt-style tr th.asc a { padding-right:20px; background:url(../images/arrow_th_bg.png) no-repeat right -48px; }
table.alt-style tr th.desc a { padding-right:20px; background:url(../images/arrow_th_bg.png) no-repeat right 6px; }
table.alt-style tr th:first-child,
table.alt-style tr td:first-child { width:30% }
.content a.submit { margin:0; display:inline-block; margin:10px 0 ; height:auto; min-width:100px; text-align:center;}
table.alt-style tr:nth-child(2n) td { background:#F2F2F2 }
dl.alt-style dt { width:30%; float:left; color:#3582AC; font-weight:normal;}
......@@ -469,7 +467,7 @@ form.quotas-form span.info span { width:285px; }
.projects .editable form textarea { width:70%; height:50px; max-width:70%; width:270px; height:120px;}
table .msg-wrap { position:relative; }
table .msg-wrap { position:relative; display:inline-block; }
table .msg-wrap .dialog { position:absolute; border:1px dashed #ccc; padding:15px; width:200px; bottom:30px; right:0; background:#fff; display:none; }
table .msg-wrap .dialog .submit { min-width:30px; padding:5px 22px; }
table .msg-wrap .dialog .no.submit { float:right; }
......
......@@ -13,6 +13,16 @@ function setContainerMinHeight( applicableDiv){
}
function tableFixedCols(table, firstColWidth ){
ColsNum = $('table th').size();
var ColWidth = parseFloat( (100 - firstColWidth)/ColsNum ).toFixed(0);
var ColWidthPercentage = ColWidth+'%';
var firstColWidthPercentage = firstColWidth+'%';
$('table th, table td').attr('width',ColWidthPercentage );
$('table tr td:first-child, table tr th:first-child').attr('width',firstColWidthPercentage );
}
//equal heights
......@@ -68,7 +78,7 @@ $(document).ready(function() {
setContainerMinHeight('.container .wrapper');
tableFixedCols('my-projects', 30);
$('.show-extra').click(function(e) {
e.preventDefault();
......@@ -178,8 +188,7 @@ $(document).ready(function() {
});
});
$(".table_sorting").tablesorter();
$('table .more-info').click(function(e){
e.preventDefault();
......@@ -208,16 +217,7 @@ $(document).ready(function() {
}
});
$('.widjet-x').click(function(e){
e.preventDefault();
$(this).siblings('ul').hide('slow');
$(this).hide();
})
$("input.leave, input.join").click(function () {
$('dialog').hide();
$(this).parents('.msg-wrap').find('.dialog').show();
......@@ -267,6 +267,8 @@ $(document).ready(function() {
$('input#id_password').siblings('label').css('opacity','0');
}
}, 100);
});
......
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