Created
April 16, 2014 00:03
-
-
Save dustinrjo/0899c94859175ee8626e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
submitForm = -> | |
formData = jQuery("form", el).serialize() | |
$http( | |
method: "POST" | |
url: "/?gf_page=preview&id=1" | |
data: formData | |
headers : { 'Content-Type': 'application/x-www-form-urlencoded' } | |
).success(submitSuccess) | |
html = $("form#gform_1").clone() | |
compiled = $compile(html)({}) | |
console.log compiled | |
el.find(".form-container").append compiled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment