Sha256: cd87d73abc2fcc5983baff6d9add95800c9b0dd5dde33cb41d6572c57a991dce
Contents?: true
Size: 602 Bytes
Versions: 11
Compression:
Stored size: 602 Bytes
Contents
$('.cancel-review').click(function (event) { event.preventDefault(); $('.button-review').show(); $(".ratings").show(); $('#new_review').html(''); }); $('.button-submit').click(function (event) { event.preventDefault(); $.ajax({ type: 'POST', url: $("#new_review").action, data: ({authenticity_token: jQuery('meta[name="csrf-token"]').attr('content'), 'review[]': [$("#new_review").serializeArray()]}), beforeSend: function(r){ $('#new_review').html('<p style="padding: 20px">Loading <img src="/assets/ratyloader.gif"/></p>');}, success: function(r){ $('#new_review').html(r);} }); });
Version data entries
11 entries across 11 versions & 1 rubygems