Acq: always show "add to new selection list" / "create new PO" buttons in
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Jul 2010 20:59:52 +0000 (20:59 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Jul 2010 20:59:52 +0000 (20:59 +0000)
related lineitems interface

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

Open-ILS/web/css/skin/default/acq.css
Open-ILS/web/js/ui/default/acq/lineitem/related.js
Open-ILS/web/templates/default/acq/lineitem/related.tt2

index 72d1c57..664976e 100644 (file)
@@ -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 }
index 9adbc8e..f6f170b 100644 (file)
@@ -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();
                 }
             }
index 27d00e1..a260956 100644 (file)
@@ -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>