delete Wallet WIP

This commit is contained in:
Matias Alejo Garcia 2014-06-16 15:51:19 -03:00
commit 46feadf57c
6 changed files with 134 additions and 83 deletions

View file

@ -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);
}
});
}
}
}
])
;