generators/facebook/templates/public/javascripts/facebooker.js in facebooker-1.0.13 vs generators/facebook/templates/public/javascripts/facebooker.js in facebooker-1.0.18
- old
+ new
@@ -46,17 +46,10 @@
}
};
var Form = {};
Form.serialize = function(form_element) {
- elements=$(form_element).serialize();
- param_string="";
- for (var name in elements) {
- if (param_string)
- param_string += "&";
- param_string += encodeURIComponent(name)+"="+encodeURIComponent(elements[name]);
- }
- return param_string;
+ return $(form_element).serialize();
};
Ajax.Updater = function (container,url,options) {
this.container = container;
this.url=url;