Add Viewport#createSelectionBuffer()
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 9 Nov 2010 23:59:25 +0000 (16:59 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 9 Nov 2010 23:59:25 +0000 (16:59 -0700)
commit7498554b7f035557e2f4f4d3f00c09036c485f2c
treea7803547a1460c458cec80555064cf71ce633c4b
parent2fde23e904f34bdf3ca579cf3f545e1ac0332e1d
Add Viewport#createSelectionBuffer()

Creates a Viewport_Selection object containing all elements currently in
the buffer.

Using this fixes generating the cached message list sent in viewport
requests.  Most notably, deleting messages in threaded mailboxes -
we were unnecessarily downloading all message data again even though it
was cached on the browser.  Instead, we just need to update the threaded
sort information on message deletion.
imp/js/dimpbase.js
imp/js/viewport.js