Skip to content

Commit

Permalink
Merge pull request #1454 from dpfaffenbauer/issue/1438
Browse files Browse the repository at this point in the history
[OrderBundle] don't remove certain elements from toolbar, just hide them
  • Loading branch information
dpfaffenbauer authored Jul 15, 2020
2 parents f00d2bb + c231646 commit 2b7bd4a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ coreshop.order.sale.list = Class.create({
var justChildrenCheckbox = toolbar.down('[name=onlyDirectChildren]');

if (searchAndMove) {
searchAndMove.next().destroy();
searchAndMove.destroy();
searchAndMove.next().hide();
searchAndMove.hide();
}

if (justChildrenCheckbox) {
justChildrenCheckbox.next().destroy();
justChildrenCheckbox.destroy();
justChildrenCheckbox.next().hide();
justChildrenCheckbox.hide();
}
} catch (ex) {
// fail silently.
Expand Down

0 comments on commit 2b7bd4a

Please sign in to comment.