Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- deletePitch: (pitchId) ->
- self = @
- $('#confirm-delete-pitch').off('click').on 'click', ->
- self.api.deletePitch(pitchId, self.flashErrorMessage)
- .then((data) -> (
- if data.error
- self.flashErrorMessage(data.error)
- self.deleteConfirmationModal.close()
- else
- self.flashSuccessMessage(data.message)
- window.location.reload()
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement