Fix mainTablePosition in js -> remove the notable class

This commit is contained in:
Christophe Vilayphiou committed 2012-04-05 14:55:41 +08:00
1 parent 7bf50d6c52
commit 1259d62249
3 files changed
+11 -10

No files matched your search

+9 -8
View File
@@ -79,20 +79,21 @@ $(window).resize(function(){
/*main-table position*/
function mainTablePosition() {
var $height = $('#main-wrap .subnav').length && $('#main-wrap .subnav').height();
var $table = $('#main-wrap > .table').length && $('#main-wrap > .table');
var $nottable = $('#main-wrap .nottable').length && $('#main-wrap .nottable');
//alert ($table.height())
if($nottable==0){
var $table = $('#main-wrap > table').length && $('#main-wrap > table');
if($table && $table==0){
$table.css({marginTop:$height});
}
else if($table){
if($height>0){
$height = $height-17;
}
$table.stop().animate({marginTop:$height},500);
}
if($table==0){
$nottable.css({marginTop:$height});
else if($('#main-wrap .subnav')){
var $object = $('#main-wrap .subnav').next();
$object.css({marginTop:$height});
};
//$table.css({marginTop : $height})
}
};
$(window).scroll(function () {
//var $mainWrapMarginLeft = parseInt($('#main-wrap').css("margin-left"))-1;
//var $subnavWidth = parseInt($('#main-wrap > .subnav').css("width"));