Fixing links on modals

This commit is contained in:
Will Marshall
2014-07-29 12:20:06 +10:00
parent c4f7c1af60
commit 2d40a8f023
2 changed files with 2 additions and 2 deletions

View File

@@ -3,5 +3,6 @@ Darkswarm.directive "hubModal", ($modal)->
replace: true
template: "<a>{{enterprise.name}}</a>"
link: (scope, elem, attrs, ctrl)->
elem.on "click", =>
elem.on "click", (ev)=>
ev.stopPropagation()
scope.modalInstance = $modal.open(controller: ctrl, templateUrl: 'hub_modal.html', scope: scope)

View File

@@ -6,6 +6,5 @@ Darkswarm.directive "producerModal", ($modal)->
link: (scope, elem, attrs, ctrl)->
elem.on "click", (ev)=>
ev.stopPropagation()
console.log scope.enterprise
scope.modalInstance = $modal.open(controller: ctrl, templateUrl: 'producer_modal.html', scope: scope)