src/client/smc/js/controllers/Orders/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() {
    $ionicLoading.show({
      template: 'Nous recherchons les magasins correspondants...'
    });
    var currentDelivery = $rootScope.currentDelivery;
    if (timer) {
      $timeout.cancel(timer);
    }
    timer = $timeout(function getProduct() {
      ShopAPI.search({
        address: currentDelivery.address_attributes.address + ' ' + currentDelivery.address_attributes.zip + ' ' + currentDelivery.address_attributes.city,
        stars: $scope.minimumStar,
        schedule: $rootScope.currentDelivery.schedule
      }, function(shops) {
        $scope.shops = shops;
        $ionicLoading.hide();
      }, function(err) {
        console.log(err);
      });
    }, 1300);
  }
function refreshShopList ( ) { $ionicLoading . show ( { template : 'Nous recherchons les magasins correspondants...' } ) ; var currentDelivery = $rootScope . currentDelivery ; if ( timer ) { $timeout . cancel ( timer ) ; } timer = $timeout ( function getProduct ( ) { ShopAPI . search ( { address : currentDelivery . address_attributes . address + ' ' + currentDelivery . address_attributes . zip + ' ' + currentDelivery . address_attributes . city , stars : $scope . minimumStar , schedule : $rootScope . currentDelivery . schedule } , function ( shops ) { $scope . shops = shops ; $ionicLoading . 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
// lat: $scope.position.coords.latitude, // lon: $scope.position.coords.longitude,