[open-ils-commits] r16075 - in trunk/Open-ILS/web: js/ui/default/acq/lineitem templates/default/acq/lineitem (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 31 16:47:05 EDT 2010
Author: erickson
Date: 2010-03-31 16:46:59 -0400 (Wed, 31 Mar 2010)
New Revision: 16075
Modified:
trunk/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js
trunk/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2
Log:
show progress dialog while waiting for the lineitem worksheet to load
Modified: trunk/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js 2010-03-31 20:46:58 UTC (rev 16074)
+++ trunk/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js 2010-03-31 20:46:59 UTC (rev 16075)
@@ -1,3 +1,4 @@
+dojo.require('openils.widget.ProgressDialog');
dojo.requireLocalization("openils.acq", "acq");
var localeStrings = dojo.i18n.getLocalization("openils.acq", "acq");
@@ -2,2 +3,3 @@
function load() {
+ progressDialog.show(true);
fieldmapper.standardRequest(
@@ -8,6 +10,7 @@
"async": true,
"oncomplete": function(r) {
r = openils.Util.readResponse(r);
+ progressDialog.hide();
var d = dojo.byId("acq-worksheet-contents");
if (r.template_output())
d.innerHTML = r.template_output().data();
Modified: trunk/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2 2010-03-31 20:46:58 UTC (rev 16074)
+++ trunk/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2 2010-03-31 20:46:59 UTC (rev 16075)
@@ -5,4 +5,7 @@
<h1>Lineitem Worksheet</h1>
<br/>
<div id="acq-worksheet-contents"></div>
+<div class='hidden'>
+ <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' message='Loading Worksheet...'/>
+</div>
[% END %]
More information about the open-ils-commits
mailing list