LP#1730752 Fix minor bug with move-to-last user/rsteed/lp1730752-eg-grid-columns-dialog-signoff-2
authorRemington Steed <rjs7@calvin.edu>
Thu, 8 Feb 2018 13:28:53 +0000 (08:28 -0500)
committerRemington Steed <rjs7@calvin.edu>
Thu, 8 Feb 2018 14:19:52 +0000 (09:19 -0500)
commit08ef6d099cccc232a181950d263576b15ea570fc
tree9824da00f07ebb76084d61f928bd2fc2c117e823
parent470a0ce412dacee1efe77dd6a65ff4eb4984cafb
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>
Open-ILS/web/js/ui/default/staff/services/grid.js