Tweaking the producer modal

This commit is contained in:
Will Marshall
2014-06-27 14:07:12 +10:00
parent 03c84cbfe5
commit e4c8c19fea
4 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
Darkswarm.directive "producerModal", ($modal)->
restrict: 'E'
replace: true
template: "<a>{{enterprise.name}}</a>"
template: "<a ng-transclude></a>"
transclude: true
link: (scope, elem, attrs, ctrl)->
elem.on "click", =>
scope.modalInstance = $modal.open(controller: ctrl, templateUrl: 'producer_modal.html', scope: scope)