flowerbox/lib/assets/javascripts/flowerbox.js.coffee
2012-03-02 13:28:52 -05:00

8 lines
176 B
CoffeeScript

Flowerbox =
baseUrl: '/'
contact: (url, data...) ->
xhr = new XMLHttpRequest()
xhr.open("POST", Flowerbox.baseUrl + url, false)
xhr.send(JSON.stringify(data))