Merge pull request #919 from jrogelstad/21605
authorLinda Nichols <lynnaloo@gmail.com>
Mon, 7 Oct 2013 16:11:40 +0000 (09:11 -0700)
committerLinda Nichols <lynnaloo@gmail.com>
Mon, 7 Oct 2013 16:11:40 +0000 (09:11 -0700)
issue #21601: Add multi-select capability to lists.

1  2 
enyo-client/extensions/source/inventory/client/views/transaction_list.js

@@@ -456,39 -48,9 +48,11 @@@ trailing:true, white:true, strict:false
            callback: callback
          });
        },
-       returnSelected: function () {
-         var models = this.selectedModels(),
-           that = this,
-           data =  [],
-           options = {},
-           atShipping,
-           model,
-           i;
-         for (i = 0; i < models.length; i++) {
-           model = models[i];
-           atShipping = model.get("atShipping");
-           // See if there's anything to issue here
-           if (atShipping) {
-             data.push(model.id);
-           }
-         }
-         if (data.length) {
-           this.spinnerShow();
-           options.success = function () {
-             that.requery();
-             that.spinnerHide();
-           };
-           XM.Inventory.returnFromShipping(data, options);
-         }
-       },
        shipmentChanged: function (inSender, inEvent) {
 +        var disabled = _.isEmpty(inEvent.shipment) ||
 +                       !XT.session.privileges.get("ShipOrders");
          this.$.parameterWidget.$.shipment.setValue(inEvent.shipment);
 -        this.$.postButton.setDisabled(_.isEmpty(inEvent.shipment));
 +        this.$.postButton.setDisabled(disabled);
        }
      });
    };