           $scope.rows = response.plan.rows
           $scope.$emit(UPDATE_TIMEOUT, response.timeout)
 
+       updateAndClearSelected = (response) ->
+         update(response)
+         $scope.clearSelected()
+
       $scope.claim = (seat) ->
         payload = {target: {name:seat}}
         if ($scope.selected.length > 0)

            angular.forEach($scope.selected, (seat) ->
                payload.seats.push({name: seat})
            )
            $http.post(jsRoutes.controllers.Orders.ajaxMove($scope.showId, $scope.orderId).url, payload).success(update).error(errorHandler)
        $scope.clearSelected()

      $scope.$on(MOVE_BEST, () ->
        $http.post(jsRoutes.controllers.Orders.ajaxMoveBest($scope.showId, $scope.orderId).url).success(update).error(errorHandler)
        $scope.clearSelected()
      )

      $scope.selected = []

      if ($scope.quantity > 0)
        $scope.quantity -= 1
    $scope.validQuantity = ->
      parseInt($scope.quantity) > 0 && parseInt($scope.quantity) <= parseInt($scope.max)
    $scope.$on(UPDATE_DISABLED_SEAT_TYPE, (event, addDisabledSeatType) -> $scope.updateDisabledSeatType(addDisabledSeatType))
    $scope.updateDisabledSeatType = (addDisabledSeatType) ->
      idx = $scope.seatTypesArray.indexOf("disabled")
