var self = this;
var vlArgs = (noVl) ? {} : {vandelay : this.vlAgent.values()};
this.batchProgress = {};
- progressDialog.show(true);
+ progressDialog.show(false);
progressDialog.attr("title", localeStrings.LI_CREATING_ASSETS);
fieldmapper.standardRequest(
['open-ils.acq', 'open-ils.acq.purchase_order.assets.create'],
this.vlAgent.handleResponse(resp,
function(resp, res) {
if (clearProgressDialog) {
+ progressDialog.update({ "progress": 100});
+ progressDialog.update_message();
progressDialog.hide();
progressDialog.attr("title", "");
- progressDialog.update_message();
}
if(reloadOnComplete)
location.href = location.href;
[ resp[keys[i]] ]
)
);
+ // for asset creation, three main phases:
+ // Vandelay, bibs, then copies
+ if (keys[i] == 'bibs') {
+ progressDialog.update({ "progress": 33});
+ } else if (keys[i] == "copies") {
+ progressDialog.update({ "progress": 67});
+ }
break;
}
}