delete Wallet WIP
This commit is contained in:
parent
bde2ae8576
commit
46feadf57c
6 changed files with 134 additions and 83 deletions
|
|
@ -202,4 +202,23 @@ angular.module('copayApp.directives')
|
|||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
})
|
||||
// From https://gist.github.com/asafge/7430497
|
||||
.directive('ngReallyClick', [
|
||||
|
||||
function() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function(scope, element, attrs) {
|
||||
element.bind('click', function() {
|
||||
var message = attrs.ngReallyMessage;
|
||||
if (message && confirm(message)) {
|
||||
scope.$apply(attrs.ngReallyClick);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
])
|
||||
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue