Skip to content

Commit 905ce0c

Browse files
committed
clicking on deposit address brings up the Hive send box
closes #3
1 parent f1f23b6 commit 905ce0c

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

css/app.css

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
@media (min-width: 660px)
22
{
3-
#transpage,#mainpage
4-
{
5-
width:660px;
6-
margin:auto;
7-
}
8-
9-
10-
3+
#transpage,#mainpage
4+
{
5+
width:660px;
6+
margin:auto;
7+
}
8+
9+
10+
1111
}
1212

1313
.min_width{
14-
min-width:280px;
14+
min-width:280px;
1515
}
1616
.max_width{
17-
max-width:340px;
17+
max-width:340px;
1818
}
1919

2020
select{
21-
max-width: 60px;
21+
max-width: 60px;
2222
}
2323

2424
body{
25-
background: url('../img/tilebg.png') repeat-x fixed center center;
26-
width:100%;
27-
}
25+
background: url('../img/tilebg.png') repeat-x fixed center center;
26+
width:100%;
27+
}
28+
29+
#deposit-list-box li {
30+
cursor: pointer;
31+
}

js/app/view/transactionPageView.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ define(['lodash', 'jquery'], function(_, $) {
1212
controller.generateDepositAddress();
1313
});
1414

15+
$('#deposit-list-box').on('click', 'li', function(e) {
16+
bitcoin.sendMoney(this.textContent)
17+
});
18+
1519
$('#withdrawal-button').bind('click', function() {
1620
var money = $('#money-withdrawal').val();
1721
var address = $('#address-withdrawal').val();
@@ -52,4 +56,4 @@ define(['lodash', 'jquery'], function(_, $) {
5256
}
5357

5458
return transactionPageView;
55-
});
59+
});

0 commit comments

Comments
 (0)