summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor/view
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/vendor/view')
-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