mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-14 23:47:48 +00:00
Adding mailto directive
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Darkswarm.directive "mailto", (Navigation)->
|
||||
restrict: 'A'
|
||||
link: (scope, element, attrs)->
|
||||
element.bind 'click', (e)->
|
||||
e.preventDefault()
|
||||
window.location.href = "mailto:#{attrs.href.split("").reverse().join("")}"
|
||||
Reference in New Issue
Block a user