Commit 17ff8dcc by Renzo Lucioni

Merge pull request #112 from edx/renzo/refund-buttons-fix

Fix issue removing all refund actions after a successfully processed refund
parents 9dd83234 36a700e5
...@@ -20,7 +20,7 @@ $(document).ready(function () { ...@@ -20,7 +20,7 @@ $(document).ready(function () {
}).success(function (data) { }).success(function (data) {
$('tr[data-refund-id=' + refund_id + '] .refund-status').text(data.status); $('tr[data-refund-id=' + refund_id + '] .refund-status').text(data.status);
addMessage('alert-success', 'icon-check-sign', 'Refund #' + refund_id + ' has been processed.'); addMessage('alert-success', 'icon-check-sign', 'Refund #' + refund_id + ' has been processed.');
$actions.remove(); $('tr[data-refund-id=' + refund_id + '] [data-action=process-refund]').remove();
}).fail(function (jqXHR, textStatus, errorThrown) { }).fail(function (jqXHR, textStatus, errorThrown) {
// NOTE (RFL): For an MVP, changing the displayed refund state on any error may be viable. // NOTE (RFL): For an MVP, changing the displayed refund state on any error may be viable.
// Ideally, the displayed refund state would only change if the refund were to enter an // Ideally, the displayed refund state would only change if the refund were to enter an
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment