multiSelect: Make sure up/down classes are removed on close.

This commit is contained in:
Thomas Tanghus 2012-12-21 06:17:13 +01:00
parent 1d55829ba6
commit 689edc2534
1 changed files with 4 additions and 4 deletions

View File

@ -68,12 +68,12 @@
if(self.menuDirection === 'down') { if(self.menuDirection === 'down') {
button.parent().children('ul').slideUp(400,function() { button.parent().children('ul').slideUp(400,function() {
button.parent().children('ul').remove(); button.parent().children('ul').remove();
button.removeClass('active'); button.removeClass('active down');
}); });
} else { } else {
button.parent().children('ul').fadeOut(400,function() { button.parent().children('ul').fadeOut(400,function() {
button.parent().children('ul').remove(); button.parent().children('ul').remove();
button.removeClass('active').removeClass('up'); button.removeClass('active up');
}); });
} }
return; return;
@ -267,12 +267,12 @@
if(self.menuDirection === 'down') { if(self.menuDirection === 'down') {
button.parent().children('ul').slideUp(400,function() { button.parent().children('ul').slideUp(400,function() {
button.parent().children('ul').remove(); button.parent().children('ul').remove();
button.removeClass('active').removeClass('down'); button.removeClass('active down');
}); });
} else { } else {
button.parent().children('ul').fadeOut(400,function() { button.parent().children('ul').fadeOut(400,function() {
button.parent().children('ul').remove(); button.parent().children('ul').remove();
button.removeClass('active').removeClass('up'); button.removeClass('active up');
}); });
} }
} }