[open-ils-commits] r14403 - in trunk/Open-ILS/web: js/ui/default/acq/common templates/default/acq/common (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Oct 13 17:12:29 EDT 2009


Author: erickson
Date: 2009-10-13 17:12:24 -0400 (Tue, 13 Oct 2009)
New Revision: 14403

Modified:
   trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
   trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
Log:
when viewing a selection list, show a link to the related lineitem PO if necessary

Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2009-10-13 19:06:25 UTC (rev 14402)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2009-10-13 21:12:24 UTC (rev 14403)
@@ -183,6 +183,11 @@
         dojo.query('[name=notes_count]', row)[0].innerHTML = li.lineitem_notes().length;
         dojo.query('[name=noteslink]', row)[0].onclick = function() {self.drawLiNotes(li)};
 
+        if(li.purchase_order() && !this.isPO) {
+            openils.Util.show(nodeByName('po', row), 'inline');
+            nodeByName('po_link', row).setAttribute('href', oilsBasePath + '/acq/po/view/' + li.purchase_order());
+        }
+
         var countNode = nodeByName('count', row);
         countNode.innerHTML = li.item_count() || 0;
         countNode.id = 'acq-lit-copy-count-label-' + li.id();

Modified: trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2	2009-10-13 19:06:25 UTC (rev 14402)
+++ trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2	2009-10-13 21:12:24 UTC (rev 14403)
@@ -64,7 +64,10 @@
                             <tbody>
                                 <tr>
                                     <td rowspan='2' style='width:43px;'><img style='width:40px;height:65px;' name='jacket'></img></td>
-                                    <td style='width:70%;font-weight:bold;'><a attr='title' href='javascript:void(0);'></a></td>
+                                    <td style='width:70%;font-weight:bold;'>
+                                        <a attr='title' href='javascript:void(0);'></a>
+                                        <span name='po' class='hidden'>(<a name='po_link' href='javascript:void(0);'>PO</a>)</span>
+                                    </td>
                                     <td rowspan='2' style='text-align:right'>
                                     </td>
                                 </tr>



More information about the open-ils-commits mailing list