mirror of https://github.com/BTCPrivate/copay.git
remove scroll in send tab
This commit is contained in:
parent
3bf5e84c3c
commit
772f97eca1
|
@ -395,7 +395,7 @@
|
||||||
<qr-scanner on-scan="home.onQrCodeScanned(data)"></qr-scanner>
|
<qr-scanner on-scan="home.onQrCodeScanned(data)"></qr-scanner>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-notification m20t" id="notification" ng-show="home.error" ng-click="home.resetError()">
|
<div class="box-notification m20t" ng-show="home.error" ng-click="home.resetError()">
|
||||||
<span class="text-warning">
|
<span class="text-warning">
|
||||||
{{home.error|translate}}
|
{{home.error|translate}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $location, $anchorScroll, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, isMobile, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, ledger, bwsError, confirmDialog, txFormatService, animationService, addressbookService, go, feeService, txSignService) {
|
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, isMobile, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, ledger, bwsError, confirmDialog, txFormatService, animationService, addressbookService, go, feeService, txSignService) {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
window.ignoreMobilePause = false;
|
window.ignoreMobilePause = false;
|
||||||
|
@ -97,12 +97,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.scrollUp = function(location){
|
|
||||||
if(!location) return;
|
|
||||||
$location.hash(location);
|
|
||||||
$anchorScroll();
|
|
||||||
};
|
|
||||||
|
|
||||||
var accept_msg = gettextCatalog.getString('Accept');
|
var accept_msg = gettextCatalog.getString('Accept');
|
||||||
var cancel_msg = gettextCatalog.getString('Cancel');
|
var cancel_msg = gettextCatalog.getString('Cancel');
|
||||||
var confirm_msg = gettextCatalog.getString('Confirm');
|
var confirm_msg = gettextCatalog.getString('Confirm');
|
||||||
|
@ -671,7 +665,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
this.hideAmount = true;
|
this.hideAmount = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
}, 1);
|
}, 1);
|
||||||
|
@ -746,7 +739,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
fc.credentials.m > 1 ? gettextCatalog.getString('Could not create payment proposal') : gettextCatalog.getString('Could not send payment');
|
fc.credentials.m > 1 ? gettextCatalog.getString('Could not create payment proposal') : gettextCatalog.getString('Could not send payment');
|
||||||
|
|
||||||
this.error = bwsError.msg(err, prefix);
|
this.error = bwsError.msg(err, prefix);
|
||||||
this.scrollUp('notification');
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$digest();
|
$scope.$digest();
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
Loading…
Reference in New Issue