[open-ils-commits] r16005 - trunk/Open-ILS/web/js/ui/default/acq/po (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 26 11:50:40 EDT 2010
Author: senator
Date: 2010-03-26 11:50:37 -0400 (Fri, 26 Mar 2010)
New Revision: 16005
Modified:
trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js
Log:
Acq: make provider indicator in PO viewing interface a link to provider iface
Modified: trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js 2010-03-26 15:09:31 UTC (rev 16004)
+++ trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js 2010-03-26 15:50:37 UTC (rev 16005)
@@ -187,6 +187,16 @@
}
}
+function makeProviderLink(node, provider) {
+ return dojo.create(
+ "a", {
+ "href": "/eg/conify/global/acq/provider/" + provider.id(),
+ "innerHTML": provider.name() + " (" + provider.code() + ")",
+ },
+ node,
+ "only"
+ );
+}
function makePrepayWidget(node, prepay) {
if (prepay) {
openils.Util.addCSSClass(node, "oils-acq-po-prepay");
@@ -252,7 +262,10 @@
function renderPo() {
dojo.byId("acq-po-view-id").innerHTML = PO.id();
dojo.byId("acq-po-view-name").innerHTML = PO.name();
- dojo.byId("acq-po-view-provider").innerHTML = PO.provider().name();
+ makeProviderLink(
+ dojo.byId("acq-po-view-provider"),
+ PO.provider()
+ );
dojo.byId("acq-po-view-total-li").innerHTML = PO.lineitem_count();
dojo.byId("acq-po-view-total-enc").innerHTML = PO.amount_encumbered();
dojo.byId("acq-po-view-total-spent").innerHTML = PO.amount_spent();
More information about the open-ils-commits
mailing list