fix animate bug

This commit is contained in:
Ezequiel Bergamaschi
2014-02-08 17:53:47 -03:00
parent 7f6d575c16
commit b3e2e37929
2 changed files with 11 additions and 11 deletions

View File

@@ -430,7 +430,9 @@ $(function () {
};
$(document).on('click', '#foldersContainer li', function (event) {
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
if (!$(this).is($('#foldersContainer .active'))) {
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
}
// Deselect previous option ...
$('#foldersContainer li').removeClass('active');