multiSelect: Make sure up/down classes are removed on close.
This commit is contained in:
parent
1d55829ba6
commit
689edc2534
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue