Display lineitem commands menu on empty picklists user/berick/lp1051112-acq-display-li-commands-empty-pl
authorBill Erickson <berick@esilibrary.com>
Mon, 5 Nov 2012 14:22:55 +0000 (09:22 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 5 Nov 2012 14:22:55 +0000 (09:22 -0500)
Ensure that the lineitem commands drop-down menu appears even when the
picklist is empty.  Previously, the commands were not displayed until
the first lineitem was retrieved.  For empty picklists, of course, there
will be no first lineitem.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/acq/picklist/view.js

index 818fb6e..f44f743 100644 (file)
@@ -106,6 +106,9 @@ function loadLIs() {
                     liTable.addLineitem(li);
                     liTable.show('list');
                 }
+            }, 
+            oncomplete : function() {
+                    liTable.show('list');
             }
         }
     );