Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 7f83a7e

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into toggleUnfunded
2 parents 88a5af9 + b9157b9 commit 7f83a7e

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

js/templates/orderShort.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,32 @@
5959
</tr>
6060
</table>
6161
<div class="floatRight width200">
62-
<div class="btn btn-txt height36 custCol-secondary js-orderShort marginBottom5 width100">
63-
<%= polyglot.t('transactions.OrderDetails') %>
64-
</div>
65-
<div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 positionWrapper js-orderShortDiscusson <% if(!ob.unread){ %> hide <% } %>"
66-
data-order="<%= ob.order_id %>">
67-
<i class="ion-chatbubbles"></i> <%= polyglot.t('Discussion') %>
68-
<div class="badge js-unreadBadge" data-count="<%= ob.unread || 0 %>"></div>
69-
</div>
7062
<% if(ob.transactionType == "purchases" && ob.status == 0){ %>
71-
<div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 js-orderShort">
72-
<%= polyglot.t('transactions.PayPurchase') %>
73-
</div>
63+
<div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 js-orderShort">
64+
<%= polyglot.t('transactions.PayPurchase') %>
65+
</div>
7466
<% } else if(ob.transactionType == "sales" && ob.status == 1){ %>
75-
<div class="btn btn-txt height36 custCol-secondary js-orderShortConfirm marginBottom5 width100">
67+
<div class="btn btn-txt height36 custCol-secondary js-orderShortConfirm marginBottom5 width100">
7668
<% if (ob.contract_type == "digital good" || ob.contract_type == "service") { %>
77-
<%= polyglot.t('transactions.ConfirmOrder') %>
69+
<%= polyglot.t('transactions.ConfirmOrder') %>
7870
<% } else { %>
79-
<%= polyglot.t('transactions.MarkAsShipped') %>
80-
<% } %>
81-
</div>
71+
<%= polyglot.t('transactions.MarkAsShipped') %>
72+
<% } %>
73+
</div>
8274
<% } else if(ob.transactionType == "purchases" && ob.status == 2){ %>
83-
<div class="btn btn-txt height36 custCol-secondary js-orderShortComplete marginBottom5 width100">
84-
<%= polyglot.t('transactions.CompleteOrder') %>
75+
<div class="btn btn-txt height36 custCol-secondary js-orderShortComplete marginBottom5 width100">
76+
<%= polyglot.t('transactions.CompleteOrder') %>
77+
</div>
78+
<% } else { %>
79+
<div class="btn btn-txt height36 custCol-secondary js-orderShort marginBottom5 width100">
80+
<%= polyglot.t('transactions.OrderDetails') %>
8581
</div>
8682
<% } %>
83+
<div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 positionWrapper js-orderShortDiscusson <% if(!ob.unread){ %> hide <% } %>"
84+
data-order="<%= ob.order_id %>">
85+
<i class="ion-chatbubbles"></i> <%= polyglot.t('Discussion') %>
86+
<div class="badge js-unreadBadge" data-count="<%= ob.unread || 0 %>"></div>
87+
</div>
8788
</div>
8889
</div>
8990
</div>

js/templates/transactionModal.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
5353
<input type="checkbox" class="textSize11px fieldItem thin" id="BuyWizardQRDetailsInput">
5454
<label for="BuyWizardQRDetailsInput" class="textSize11px"> <%= polyglot.t('AdditionalPaymentDataInfo') %></label>
5555
</div>
56-
<a class="btn btn-txt btn-wide row10 js-transactionPayCopy"><i class="ion-clipboard"></i> <%= polyglot.t('buyFlow.CopyAddress') %></a>
56+
<a class="btn btn-txt btn-wide row10 js-transactionPayCopy" data-url="<%= ob.buyer_order.order.payment.address %>">
57+
<i class="ion-clipboard"></i> <%= polyglot.t('buyFlow.CopyAddress') %>
58+
</a>
5759
<a class="btn btn-txt btn-wide row10 js-externalLink"
5860
href="bitcoin:<%= ob.buyer_order.order.payment.address %>?amount=<%= ob.buyer_order.order.payment.amount %>&message=<%= ob.vendor_offer.listing.item.title %>">
5961
<i class="ion-link"></i> <%= polyglot.t('buyFlow.OpenAddress') %>

js/views/transactionModalVw.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module.exports = baseVw.extend({
4141
'click .js-copyOutgoingTx': 'copyTx',
4242
'click .js-closeOrderForm': 'closeOrderForm',
4343
'click .js-showFundOrder': 'showFundOrder',
44+
'click .js-transactionPayCopy': 'copyTransactionPay',
4445
'click .js-transactionPayCheck':'checkPayment',
4546
'click .js-startDispute': 'startDispute',
4647
'click .js-startDisputeResend': 'confirmDisputeResend',
@@ -426,6 +427,11 @@ module.exports = baseVw.extend({
426427
});
427428
},
428429

430+
copyTransactionPay: function(e){
431+
"use strict";
432+
clipboard.writeText($(e.target).data('url'));
433+
},
434+
429435
checkPayment: function(){
430436
var self = this,
431437
formData = new FormData();

0 commit comments

Comments
 (0)