LP1051112 - Display lineitem commands menu on empty picklists
authorBill Erickson <berick@esilibrary.com>
Mon, 5 Nov 2012 14:22:55 +0000 (09:22 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 29 Jan 2013 06:01:11 +0000 (01:01 -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>
Signed-off-by: Ben Shum <bshum@biblio.org>
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');
             }
         }
     );