From: erickson Date: Wed, 31 Mar 2010 20:46:59 +0000 (+0000) Subject: show progress dialog while waiting for the lineitem worksheet to load X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1ec5a4210f949fcfdedb0f189ddda55bebbb5443;p=evergreen%2Fmasslnc.git show progress dialog while waiting for the lineitem worksheet to load git-svn-id: svn://svn.open-ils.org/ILS/trunk@16075 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js b/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js index 273bd110fe..ea763b2484 100644 --- a/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js +++ b/Open-ILS/web/js/ui/default/acq/lineitem/worksheet.js @@ -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(); diff --git a/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2 b/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2 index ad3b70aebb..37c3a5e84c 100644 --- a/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2 +++ b/Open-ILS/web/templates/default/acq/lineitem/worksheet.tt2 @@ -5,4 +5,7 @@

Lineitem Worksheet


+