Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #5265

Category None
Changed by Remington Steed <rjs7ohnoyoudont@calvin.edu>
Changed at Wed 21 Mar 2018 11:03:25
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 95600c41a94dedea632cecc9d3354b170c09a947


LP#1747963 Fix "trim list" feature in web client
The use of splice() here caused buggy behavior and seemed to be a typo,
so I tried using slice() instead. But that still didn't work correctly.
The list stopped adding items after it reached 21 total, so scanning a
new barcode didn't add it to the list but only refreshed the list.

Instead, this commit sets the length of the array to 20, which shortens
the array as described in the MDN documentation for Array.length. Now it
behaves like it did in the XUL client.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>

Changed files