From: Bill Erickson Date: Mon, 19 Dec 2011 22:08:12 +0000 (-0500) Subject: Vandelay: refresh upload and inspect queue pages X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a67ff8ba93fffe9f20d7e379baf03de438034c0d;p=working%2FEvergreen.git 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 --- diff --git a/Open-ILS/src/templates/vandelay/inc/toolbar.tt2 b/Open-ILS/src/templates/vandelay/inc/toolbar.tt2 index cdfc6d61e8..61be2a6e35 100644 --- a/Open-ILS/src/templates/vandelay/inc/toolbar.tt2 +++ b/Open-ILS/src/templates/vandelay/inc/toolbar.tt2 @@ -2,9 +2,9 @@
[% l('Export Records') %]
[% l('Import Records') %]
+ onclick="location.href = oilsBasePath + '/vandelay/vandelay';" showLabel="true">[% l('Import Records') %]
[% l('Inspect Queue') %]
+ onclick="location.href = oilsBasePath + '/vandelay/vandelay?page=inspectq';" showLabel="true">[% l('Inspect Queue') %]
[% l('Record Display Attributes') %]
- -
- [% INCLUDE 'vandelay/inc/progress.tt2' %] -
- - - - - - - - - - -