ff ui / ensure lookupcomplete is set even when no data is present
authorBill Erickson <berick@esilibrary.com>
Wed, 6 Nov 2013 18:04:07 +0000 (13:04 -0500)
committerBill Erickson <berick@esilibrary.com>
Wed, 6 Nov 2013 18:04:07 +0000 (13:04 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/fulfillment/app.js

index 6c9e00b..ecf4743 100644 (file)
@@ -267,10 +267,9 @@ function ($scope,  $q,  $compile,  $timeout,  $rootScope, $location,
                 offset : $scope.itemList.offset
             }
         ).then(
-            null, // success/oncomplete
+            function() { $scope.lookupComplete = true },
             null, // error
             function(item) { // notify/onresponse handler
-                $scope.lookupComplete = true;
                 item.index = $scope.itemList.count();
                 if (item.copy_barcode) {
                     item.copy_barcode_enc =