Remove jquery animate, juste modify div height.

This commit is contained in:
Mikaël Ates 2016-01-22 17:52:14 +01:00
parent c6c1346518
commit e724d05165
1 changed files with 4 additions and 11 deletions

View File

@ -134,18 +134,11 @@
} }
$('div#controlbar').empty(); $('div#controlbar').empty();
$('div#controlbar').append(content); $('div#controlbar').append(content);
$('div#content-1').animate({ $('div#content-1').height('88%');
height: "88%", $('div#controlbar').fadeIn();
}, 300, "linear", function() {
$('div#controlbar').fadeIn();
}
);
} else { } else {
$('div#controlbar').fadeOut(500, function(){ $('div#controlbar').fadeOut(500);
$('div#content-1').animate({ $('div#content-1').height('100%');
height: "100%",
}, 300, "linear");
});
} }
}); });
} }