+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();