Skip to content

Commit

Permalink
Rename show method
Browse files Browse the repository at this point in the history
  • Loading branch information
umpirsky committed Jun 6, 2015
1 parent bfeb167 commit e11a081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/scripts/directives/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ angular.module('restaurantsApp')
function controller($scope) {
var modalInstance;

this.showImage = function(index) {
this.show = function(index) {
modalInstance && modalInstance.dismiss();

$scope.startAt = index;
Expand All @@ -23,7 +23,7 @@ angular.module('restaurantsApp')
size: 'md',
scope: $scope,
});
}
};
}

function link(scope, element, attrs, ctrl) {
Expand Down
4 changes: 2 additions & 2 deletions app/views/restaurant.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ <h4 class="media-heading">{{ restaurant.url | urlText }}</h4>
</div>
</div>
</div>
<slick init-onload="true" data="restaurant.images" slides-to-show="4" slides-to-scroll="1" class="slider filtering" responsive="breakpoints">
<slick on-init="slickOnInit()" init-onload="false" data="restaurant.images" slides-to-show="4" slides-to-scroll="1" class="slider filtering" responsive="breakpoints">
<div ng-repeat="image in restaurant.images" modal>
<a restaurant="restaurant" ng-click="modal.showImage($index)">
<a ng-click="modal.show($index)">
<img ng-src="{{ image | thumbnail:200 }}" class="img-responsive" alt="{{ restaurant.name }}">
</a>
</div>
Expand Down

0 comments on commit e11a081

Please sign in to comment.