]> git.evergreen-ils.org Git - Evergreen.git/commit
Vandelay: refresh upload and inspect queue pages
authorBill Erickson <berick@esilibrary.com>
Mon, 19 Dec 2011 22:08:12 +0000 (17:08 -0500)
committerMike Rylander <mrylander@gmail.com>
Tue, 28 Feb 2012 19:51:33 +0000 (14:51 -0500)
commitdb2759bcf9de84f9c22a9499f4d8120c987746d1
tree26c9fee17e6fb1942425808b35c16b48492c5a7a
parent4d5c6ada5a3dbca18e3abfc6dbbafc62df1d09ef
Vandelay: refresh upload and inspect queue pages

Vandley sub-pages are currently managed as hidden divs that come into
view when the requested tab is selected.  This creates two types of
problems in the interface.  The first is that newly created data (e.g. a
new queue) is not available in the UI, because it's not getting
re-fetched from the server when the tab is opened (or added to local
data stores).  Second, certain form elements misbehave when the form is
re-rendered without a refresh.  Elements, typically checkboxes, will
appear to be selected when they are not.  (Or, perhaps they are, and the
method to detect their selection is not sufficient).  The simplest
solution to both problems is to simply reload the page....

This patch changes the tabs for Import Records and Inspect Queue so that
they reload the page (focused on the selected tab) instead of just
showing the hidden div.  These pages were chosen because they are the
only interfaces that don't automatically refresh their own data and (for
Import Record) have forms that need refreshing.

Additionally, since the user may spend more time loading Vandelay
pages, this also fixes the long-standing annoyance of seeing the
Vandelay UI partially render while waiting for the page to load.  Now,
it all remains hidden, except for a brief "Loading..." message.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/vandelay/inc/toolbar.tt2
Open-ILS/src/templates/vandelay/vandelay.tt2
Open-ILS/web/js/ui/default/vandelay/vandelay.js