vendor/assets/javascripts/rating.js in fat_free_crm-0.13.2 vs vendor/assets/javascripts/rating.js in fat_free_crm-0.13.3

- old
+ new

@@ -94,11 +94,11 @@ notify: function() { this.rating = this.score(); this.options.callback(this.element, this.rating); if (this.options.remote_url) { var parameters = new Template(this.options.remote_parameters).evaluate({id: this.element.id, rating: this.rating}); - new Ajax.Request(this.options.remote_url, { method: this.options.remote_method, parameters: parameters }); + $.ajax(this.options.remote_url, { type: this.options.remote_method, data: parameters }); } }, //--------------------------------------------------------------------------- reset: function() { @@ -150,10 +150,10 @@ this.parse(); }, //--------------------------------------------------------------------------- parse: function() { - $$(this.class_name).each(function(element) { + $(this.class_name).each(function(element) { if (!this.elements.include(element)) { this.elements.push(element); new Ratable(element, this.options); } }.bind(this));