Sha256: 6eeeffc4ccc7500fc6af49a8771f786eb395137915e0a28e8c52cc77d726bacf
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
$('table a').click(function(e){ e.preventDefault() if(confirm($("#credits").data("confirm"))){ var backer_id = $(this).parent().parent().parent().attr('id') $('#' + backer_id + ' .text').hide() $('#' + backer_id + ' .loading').show() $.post('/credits/refund', { backer_id: backer_id }, function(r){ $('#' + r.backer_id + ' .loading').hide() if(r.ok){ $('#' + r.backer_id + ' .text').html("Solicitado estorno") $('#' + r.backer_id + ' .text').show() $('#current_credits').html(r.credits) } else { $('#' + r.backer_id + ' .error').html(r.message) $('#' + r.backer_id + ' .error').show() } }) } })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catarse_core-1.0.0.beta | app/assets/javascripts/app/views/credits/index.js |