Sha256: 086386bbb360afa016c9f98ee5fce63d24c3b395c521ee0af1e520d3a8585995

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

angular.module("hyperadmin")
  .directive "deleteLink", ($http) ->
    link: (scope, element, attributes) ->
      element.off("click").on "click", (event) ->
        event.preventDefault()

        href = element.attr("href")
        $http(method: "DELETE", url: href) if href

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper_admin-0.4.0 app/assets/javascripts/hyper_admin/angularjs/directives/delete_link.js.coffee
hyper_admin-0.3.0 app/assets/javascripts/hyper_admin/angularjs/directives/delete_link.js.coffee