added a new directive for import backups
This commit is contained in:
parent
05f41a8e46
commit
3746a9b878
2 changed files with 15 additions and 1 deletions
|
|
@ -75,5 +75,15 @@ angular.module('copay.directives')
|
|||
}
|
||||
}
|
||||
})
|
||||
;
|
||||
.directive('ngFileSelect',function() {
|
||||
return {
|
||||
link: function($scope, el) {
|
||||
el.bind('change', function(e) {
|
||||
$scope.file = (e.srcElement || e.target).files[0];
|
||||
console.log('file directive', $scope.file);
|
||||
$scope.getFile();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue