]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1730752 Fix minor bug with move-to-last
authorRemington Steed <rjs7@calvin.edu>
Thu, 8 Feb 2018 13:28:53 +0000 (08:28 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 9 Feb 2018 16:55:49 +0000 (11:55 -0500)
commit1f630f2189842cec8949596edd3c2fada4a9c8fc
tree7eaf9244e0ee18558da1aa05b0db3376269ead9e
parentb2262e225f8ffe21f607b39869e46e37c10af268
LP#1730752 Fix minor bug with move-to-last

If you click "Make last visible" on the column that is already the last
visible, it bumps it down one position when it should not move. This
commit adjusts the logic so that columns that are before or already in
the last-visible slot (thus, '<' or '=') will end up in the last-visible
slot, and columns only go after the last-visible slot if they are
already after it.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/grid.js