show progress dialog while waiting for the lineitem worksheet to load
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Mar 2010 20:46:59 +0000 (20:46 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Mar 2010 20:46:59 +0000 (20:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16075 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js
Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2

index 273bd11..ea763b2 100644 (file)
@@ -1,13 +1,16 @@
+dojo.require('openils.widget.ProgressDialog');
 dojo.requireLocalization("openils.acq", "acq");
 var localeStrings = dojo.i18n.getLocalization("openils.acq", "acq");
 
 function load() {
+    progressDialog.show(true);
     fieldmapper.standardRequest(
         ["open-ils.acq", "open-ils.acq.lineitem.format"], {
             "params": [openils.User.authtoken, liId, "html"],
             "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();
index ad3b70a..37c3a5e 100644 (file)
@@ -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 %]