Skip to content

Commit fb3a6bc

Browse files
committed
0.5.2 Allow to use HEX currencies
1 parent 727da8b commit fb3a6bc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91660,7 +91660,7 @@ <h3 class="order-fields hidden">Transaction details</h3>
9166091660
</script>
9166191661
<script>(function() {
9166291662

91663-
var version = '0.5.1';
91663+
var version = '0.5.2';
9166491664
var testnet = false;
9166591665
var bithomp = 'https://bithomp.com';
9166691666
var bithompTestnet = 'https://test.bithomp.com';
@@ -93120,8 +93120,8 @@ <h3 class="order-fields hidden">Transaction details</h3>
9312093120
var currency = DOM.trustlineCurrency.val();
9312193121
currency = currency.trim().toUpperCase();
9312293122

93123-
if (!currency || currency.lenght > 3) {
93124-
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
93123+
if (!currency) {
93124+
DOM.txFeedback.html('Please enter the currency');
9312593125
DOM.trustlineCurrency.focus();
9312693126
return;
9312793127
}
@@ -93242,8 +93242,8 @@ <h3 class="order-fields hidden">Transaction details</h3>
9324293242
var currency = DOMcurrency.val();
9324393243
currency = currency.trim().toUpperCase();
9324493244

93245-
if (!currency || currency.lenght > 3) {
93246-
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
93245+
if (!currency) {
93246+
DOM.txFeedback.html('Please enter the currency');
9324793247
DOMcurrency.focus();
9324893248
return false;
9324993249
}

src/js/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function() {
22

3-
var version = '0.5.1';
3+
var version = '0.5.2';
44
var testnet = false;
55
var bithomp = 'https://bithomp.com';
66
var bithompTestnet = 'https://test.bithomp.com';
@@ -1460,8 +1460,8 @@ function trustline(action) {
14601460
var currency = DOM.trustlineCurrency.val();
14611461
currency = currency.trim().toUpperCase();
14621462

1463-
if (!currency || currency.lenght > 3) {
1464-
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
1463+
if (!currency) {
1464+
DOM.txFeedback.html('Please enter the currency');
14651465
DOM.trustlineCurrency.focus();
14661466
return;
14671467
}
@@ -1582,8 +1582,8 @@ function validateAmount(DOMamount, DOMcurrency, DOMcounterparty) {
15821582
var currency = DOMcurrency.val();
15831583
currency = currency.trim().toUpperCase();
15841584

1585-
if (!currency || currency.lenght > 3) {
1586-
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
1585+
if (!currency) {
1586+
DOM.txFeedback.html('Please enter the currency');
15871587
DOMcurrency.focus();
15881588
return false;
15891589
}

0 commit comments

Comments
 (0)