forked from 0x2620/pandora
fix a bug in toolbar
This commit is contained in:
parent
d78385fd9c
commit
d48fab6844
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ pandora.ui.toolbar = function() {
|
||||||
pandora.$ui.sortSelect = pandora.ui.sortSelect().insertAfter(pandora.$ui.viewSelect);
|
pandora.$ui.sortSelect = pandora.ui.sortSelect().insertAfter(pandora.$ui.viewSelect);
|
||||||
pandora.$ui.orderButton = pandora.ui.orderButton().insertAfter(pandora.$ui.sortSelect);
|
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.replaceWith(
|
||||||
pandora.$ui.sortSelect = pandora.ui.sortSelect()
|
pandora.$ui.sortSelect = pandora.ui.sortSelect()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue