refactor
This commit is contained in:
parent
58ba939f89
commit
2813216a66
4 changed files with 23 additions and 8 deletions
|
|
@ -195,15 +195,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="searchLabel" class="left-inner-addon ">
|
<div class="left-inner-addon ">
|
||||||
<i class="fi-magnifying-glass"></i>
|
<i class="fi-magnifying-glass"></i>
|
||||||
<input name="search"
|
<input type="text"
|
||||||
ng-click="home.searchInput()"
|
class="form-control"
|
||||||
ng-focus="home.formFocus('search')"
|
placeholder="Amount, address, mm/dd/yyyy"
|
||||||
ng-blur="home.formFocus(false)"
|
ng-model="search"></input>
|
||||||
type="text"
|
|
||||||
placeholder="{{'Amount, address, mm/dd/yyyy' | translate}}"
|
|
||||||
ng-model="search"></input>
|
|
||||||
</div>
|
</div>
|
||||||
<div ng-repeat="btx in index.filter(search) track by btx.txid"
|
<div ng-repeat="btx in index.filter(search) track by btx.txid"
|
||||||
fast-click callback-fn="home.openTxModal(btx)"
|
fast-click callback-fn="home.openTxModal(btx)"
|
||||||
|
|
|
||||||
|
|
@ -796,6 +796,11 @@ table tbody tr:last-child td {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
.left-inner-addon a {
|
||||||
|
position: absolute;
|
||||||
|
padding: 5px;
|
||||||
|
right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
/*//////////////////////////// BUTTON OUTLINE ////////////////////////////*/
|
/*//////////////////////////// BUTTON OUTLINE ////////////////////////////*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -916,6 +916,13 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
self.hideHistory = function() {
|
||||||
|
if (!self.historyShowShowAll) {
|
||||||
|
self.txHistory = self.txHistory.slice(0, 10);
|
||||||
|
self.historyShowShowAll = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
self.filter = function(search) {
|
self.filter = function(search) {
|
||||||
|
|
||||||
function formatDate(date) {
|
function formatDate(date) {
|
||||||
|
|
@ -1192,6 +1199,11 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.setAddressbook(ab);
|
self.setAddressbook(ab);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$rootScope.$on('Local/Searching', function(event, val) {
|
||||||
|
if (val) self.showAllHistory();
|
||||||
|
else self.hideHistory();
|
||||||
|
});
|
||||||
|
|
||||||
// UX event handlers
|
// UX event handlers
|
||||||
$rootScope.$on('Local/ColorUpdated', function(event) {
|
$rootScope.$on('Local/ColorUpdated', function(event) {
|
||||||
self.updateColor();
|
self.updateColor();
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
ret.isMobile = isMobile.any();
|
ret.isMobile = isMobile.any();
|
||||||
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
||||||
var vanillaScope = ret;
|
var vanillaScope = ret;
|
||||||
|
this.isSearching = false;
|
||||||
|
|
||||||
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
||||||
self.setForm(data);
|
self.setForm(data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue