From: senator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 22 Jul 2010 20:59:52 +0000 (+0000)
Subject: Acq: always show "add to new selection list" / "create new PO" buttons in
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5ac6df20314906522414fdde8ec2920b2476fb80;p=evergreen%2Ftadl.git

Acq: always show "add to new selection list" / "create new PO" buttons in
related lineitems interface


git-svn-id: svn://svn.open-ils.org/ILS/trunk@17012 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/css/skin/default/acq.css b/Open-ILS/web/css/skin/default/acq.css
index 72d1c578a3..664976ed1f 100644
--- a/Open-ILS/web/css/skin/default/acq.css
+++ b/Open-ILS/web/css/skin/default/acq.css
@@ -181,6 +181,10 @@ span[name="notes_alert_flag"] {color: #c00;font-weight: bold;font-size: 110%;mar
 
 #acq-related-info-tbody td {padding:5px;}
 #acq-related-mini ul { list-style-type: square; }
+#acq-related-li-create-holder {
+    margin-bottom: 16px;
+    padding-bottom: 12px;
+}
 
 /* fiscal rollover ui */
 #oils-acq-rollover-tooltip-table td { border-bottom: 2px solid #888 }
diff --git a/Open-ILS/web/js/ui/default/acq/lineitem/related.js b/Open-ILS/web/js/ui/default/acq/lineitem/related.js
index 9adbc8e485..f6f170b67b 100644
--- a/Open-ILS/web/js/ui/default/acq/lineitem/related.js
+++ b/Open-ILS/web/js/ui/default/acq/lineitem/related.js
@@ -51,10 +51,6 @@ function fetchRelated() {
                     liTable.show("list");
                     liTable.addLineitem(resp);
                 }
-            },
-            "oncomplete": function() {
-                if (!total)
-                    openils.Util.show("li_create_holder");
             }
         }
     );
@@ -101,7 +97,6 @@ function createLi(oncomplete) {
                 },
                 "oncomplete": function() {
                     progressDialog.hide();
-                    openils.Util.hide("li_create_holder");
                     oncomplete();
                 }
             }
diff --git a/Open-ILS/web/templates/default/acq/lineitem/related.tt2 b/Open-ILS/web/templates/default/acq/lineitem/related.tt2
index 27d00e1e53..a260956cb4 100644
--- a/Open-ILS/web/templates/default/acq/lineitem/related.tt2
+++ b/Open-ILS/web/templates/default/acq/lineitem/related.tt2
@@ -39,7 +39,7 @@
         </li>
     </ul>
 
-    <div id="li_create_holder" class="hidden">
+    <div id="acq-related-li-create-holder">
         <button jsId="addToPlButton" dojoType="dijit.form.Button">
             Add to New Selection List
         </button>