]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Bug fix for list class, where refresh-row functionality broke the on_all_fleshed...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 26 Aug 2007 05:33:11 +0000 (05:33 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 26 Aug 2007 05:33:11 +0000 (05:33 +0000)
commit1a8a39642cf589d089507af5fcd3b4048111fb81
treefb637b89c4c7dc51781b654fbffb5af6aff0ecf4
parent3958a3f0d5b0a3bdb6002c28e097e784af58664b
Bug fix for list class, where refresh-row functionality broke the on_all_fleshed callback handler.  Since rows in a list can flesh themselves out asynchonously, and some actions want to act on all rows in a list, we have a function that asks the whole list to flesh itself (because unseen rows normally don't), and a way to pass a callback function for when the list has been completely fleshed.  Internally, it keeps a count of total rows and total fleshed rows, and if the two are equal, then the list is considered fleshed.  However, the recent refresh-a-single-row functionality was effectively increasing the total fleshed rows tally without first adjusting it, and you would get fleshed rows > total rows, and the callback would never fire.  So this fixes all of that.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@7717 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/chrome/content/util/list.js