From b8d7c543ee2a2ed8a6e1c6beb8b4519ddace8e2d Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 6 May 2010 14:55:11 +0000 Subject: [PATCH] added links to LI and PO history pages git-svn-id: svn://svn.open-ils.org/ILS/trunk@16394 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 7 +++++++ Open-ILS/web/templates/default/acq/common/li_table.tt2 | 2 ++ 2 files changed, 9 insertions(+) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 73c5cb532..d05fb4758 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -432,6 +432,9 @@ function AcqLiTable() { var actLinkInvoice = nodeByName('action_link_invoice', row); var actViewInvoice = nodeByName('action_view_invoice', row); + nodeByName('action_view_history', row).onclick = + function() { location.href = oilsBasePath + '/acq/lineitem/history/' + li.id(); }; + var state_cell = nodeByName("li_state", row); if (li.state() == "cancelled") { @@ -1872,6 +1875,10 @@ function AcqLiTable() { this.printPO(); break; + case 'po_history': + location.href = oilsBasePath + '/acq/po/history/' + this.isPO; + break; + case 'receive_po': this.receivePO(); break; diff --git a/Open-ILS/web/templates/default/acq/common/li_table.tt2 b/Open-ILS/web/templates/default/acq/common/li_table.tt2 index 5cacf1dc5..b2526585f 100644 --- a/Open-ILS/web/templates/default/acq/common/li_table.tt2 +++ b/Open-ILS/web/templates/default/acq/common/li_table.tt2 @@ -29,6 +29,7 @@ +