remove scroll in send tab

This commit is contained in:
Javier 2016-02-01 16:18:44 -03:00
parent 3bf5e84c3c
commit 772f97eca1
2 changed files with 5 additions and 12 deletions

View File

@ -395,7 +395,7 @@
<qr-scanner on-scan="home.onQrCodeScanned(data)"></qr-scanner>
</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">
{{home.error|translate}}
</span>

View File

@ -1,6 +1,6 @@
'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;
window.ignoreMobilePause = false;
@ -97,12 +97,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$rootScope.$digest();
});
this.scrollUp = function(location){
if(!location) return;
$location.hash(location);
$anchorScroll();
};
var accept_msg = gettextCatalog.getString('Accept');
var cancel_msg = gettextCatalog.getString('Cancel');
var confirm_msg = gettextCatalog.getString('Confirm');
@ -671,7 +665,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
this.hideAmount = true;
}
}
$timeout(function() {
$rootScope.$digest();
}, 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');
this.error = bwsError.msg(err, prefix);
this.scrollUp('notification');
$timeout(function() {
$scope.$digest();
}, 1);