Removes unused functions, disclaimer more clear

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-16 10:05:47 -03:00
commit 4d17133ae1
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 5 additions and 10 deletions

View file

@ -1,13 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('disclaimerController',
function($scope, $timeout, storageService, applicationService, go, gettextCatalog, isCordova) {
storageService.getCopayDisclaimerFlag(function(err, val) {
$scope.agreed = val;
$timeout(function() {
$scope.$digest();
}, 1);
});
function($scope, $timeout, storageService, applicationService, gettextCatalog, isCordova) {
$scope.agree = function() {
if (isCordova) {
@ -25,6 +19,7 @@ angular.module('copayApp.controllers').controller('disclaimerController',
});
}, 100);
};
$scope.init = function() {
storageService.getCopayDisclaimerFlag(function(err, val) {
$scope.agreed = val;