summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-09 17:46:54 -0500
committerJules Laplace <jules@okfoc.us>2015-11-09 17:46:54 -0500
commitead9d27ebc580ce428c991cbbd3ad505865ffd63 (patch)
tree3d91872dc17760ea7df5ab4698f24bde6d838769 /StoneIsland/www/js/vendor
parent6a8e38d24c4866b8559f7116eac694fbf1da4ded (diff)
case sensitive
Diffstat (limited to 'StoneIsland/www/js/vendor')
-rw-r--r--StoneIsland/www/js/vendor/view/serializable.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/StoneIsland/www/js/vendor/view/serializable.js b/StoneIsland/www/js/vendor/view/serializable.js
new file mode 100644
index 00000000..91d84997
--- /dev/null
+++ b/StoneIsland/www/js/vendor/view/serializable.js
@@ -0,0 +1,13 @@
+var SerializableView = View.extend({
+
+ serialize: function(){
+ var fd = new FormData(), hasCSRF = false
+
+ this.$("input[name], select[name], textarea[name]").each( function(){
+ fd.append(this.name, this.value)
+ })
+
+ return fd
+ },
+
+}) \ No newline at end of file