Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Added MA data class
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jul 1, 2017
1 parent a3ab3be commit 0ee0012
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions static/BunqAPI/JS/my_bunq.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ function sendPost(action, template, data) {
$(document).delegate('.table-click', 'click', function(event) {
/* Act on the event */
payment_id = $(this).data("id")
sendPost('payment' + '/' + get_user_id() + '/' + get_account_id() + '/' + payment_id, single_transaction_template)
ma_id = $(this).data("ma")
sendPost('payment' + '/' + get_user_id() + '/' + ma_id + '/' + payment_id, single_transaction_template)
setTimeout(function(){

$("#single_transaction").bPopup()
Expand All @@ -223,7 +224,8 @@ $(document).delegate('.table-click', 'click', function(event) {

$(document).delegate('#export_payment', 'click', function(event) {
payment_id = $(this).data("id")
sendPost('get_payment_pdf/' + get_user_id() + '/' + get_account_id() + '/' + payment_id)
ma_id = $(this).data("ma")
sendPost('get_payment_pdf/' + get_user_id() + '/' + ma_id + '/' + payment_id)
});

$(document).delegate('.search', 'keyup', function(event) {
Expand Down
2 changes: 1 addition & 1 deletion static/BunqAPI/templates/mustache/payments.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td>{{Payment.counterparty_alias.iban}}</td>
<td>{{Payment.counterparty_alias.display_name}}</td>
<td>{{Payment.description}}</td>
<td><button class="table-click mini ui secondary button" data-id="{{Payment.id}}" >Details</button> | <button id="export_payment" data-id="{{Payment.id}}" class="mini ui secondary button">Export</button></td>
<td><button class="table-click mini ui secondary button" data-id="{{Payment.id}}" data-ma="{{Payment.monetary_account_id}}" >Details</button> | <button id="export_payment" data-id="{{Payment.id}}" data-ma="{{Payment.monetary_account_id}}" class="mini ui secondary button">Export</button></td>
</tr>
{{/rows}}
</tbody>
Expand Down

0 comments on commit 0ee0012

Please sign in to comment.