src/client/smc/js/controllers/Deliveries/ShopCtrl.js
/**
   * @name refreshShopList
   * @description Rafraichissement de la liste des magasins
   */
@name refreshShopList
@description Rafraichissement de la liste des magasins
@name refreshShopList @description Rafraichissement de la liste des magasins
function refreshShopList() {
    if (timer) {
      $timeout.cancel(timer);
    }
    timer = $timeout(function getProduct() {
      ShopAPI.search({
        lat: ($scope.position ? $scope.position.coords.latitude : undefined),
        lon: ($scope.position ? $scope.position.coords.longitude : undefined),
        stars: $scope.minimumStar,
        address: ($scope.position ? undefined : $scope.address)
      }, function(shops) {
        $scope.shops = shops;
        LoadingModal.hide();
      }, function(err) {
        console.log(err);
      });
    }, 1300);
  }
function refreshShopList ( ) { if ( timer ) { $timeout . cancel ( timer ) ; } timer = $timeout ( function getProduct ( ) { ShopAPI . search ( { lat : ( $scope . position ? $scope . position . coords . latitude : undefined ) , lon : ( $scope . position ? $scope . position . coords . longitude : undefined ) , stars : $scope . minimumStar , address : ( $scope . position ? undefined : $scope . address ) } , function ( shops ) { $scope . shops = shops ; LoadingModal . hide ( ) ; } , function ( err ) { console . log ( err ) ; } ) ; } , 1300 ) ; }
@name refreshShopList
 @description Rafraichissement de la liste des magasins
@name refreshShopList @description Rafraichissement de la liste des magasins