fix a bug in toolbar

This commit is contained in:
rolux 2011-11-01 12:05:30 +00:00
parent d78385fd9c
commit d48fab6844

View file

@ -50,7 +50,7 @@ pandora.ui.toolbar = function() {
pandora.$ui.sortSelect = pandora.ui.sortSelect().insertAfter(pandora.$ui.viewSelect);
pandora.$ui.orderButton = pandora.ui.orderButton().insertAfter(pandora.$ui.sortSelect);
}
} else if ((data.value == 'clip') != data.previousValue == 'clip') {
} else if ((data.value == 'clip') != (data.previousValue == 'clip')) {
pandora.$ui.sortSelect.replaceWith(
pandora.$ui.sortSelect = pandora.ui.sortSelect()
);