File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ angular.module('restaurantsApp')
9
9
$scope . restaurant = data ;
10
10
} ) ;
11
11
12
+ $scope . slickOnInit = function ( ) {
13
+ $scope . refreshing = true ;
14
+ $scope . $apply ( ) ;
15
+ $scope . refreshing = false ;
16
+ $scope . $apply ( ) ;
17
+ } ;
18
+
12
19
$scope . breakpoints = [ {
13
20
breakpoint : 1024 ,
14
21
settings : {
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ <h4 class="media-heading">{{ restaurant.url | urlText }}</h4>
46
46
</ div >
47
47
</ div >
48
48
</ div >
49
- < slick on-init ="slickOnInit() " init-onload ="false " data ="restaurant.images " slides-to-show ="4 " slides-to-scroll ="1 " class ="slider filtering " responsive ="breakpoints ">
49
+ < slick on-set-position ="slickOnInit() " init-onload ="false " data ="restaurant.images " slides-to-show ="4 " slides-to-scroll ="1 " class ="slider filtering " responsive ="breakpoints ">
50
50
< div ng-repeat ="image in restaurant.images " modal >
51
- < a ng-click ="modal.show($index) ">
51
+ < a ng-if =" !refreshing " ng- click ="modal.show($index) ">
52
52
< img ng-src ="{{ image | thumbnail:200 }} " class ="img-responsive " alt ="{{ restaurant.name }} ">
53
53
</ a >
54
54
</ div >
You can’t perform that action at this time.
0 commit comments